Conversation
- Implements FrameDataView: a custom IDataView wrapping a Deedle Frame<'R, string> for use directly with ML.NET pipelines. Supports Double, Single, Int32, Int64, Boolean, and Text column types; missing values become NaN / empty string. - Frame.toDataView - converts a Deedle Frame to an IDataView - Frame.ofDataView - converts an IDataView back to a Frame<int, string> - Pipeline.fitEstimator / fitTransform / fitTransformOn - fit ML.NET estimators and/or apply transformers to Deedle frames - Pipeline.applyTransformer - apply an already-fitted ITransformer to a Frame - C#-friendly extension methods (ToDataView, Transform, FitTransform) via FrameMLExtensions - 17 tests covering schema inference, cursor iteration, round-trip conversions, missing value propagation, and ML.NET normalisation transforms Closes #563 Co-authored-by: Copilot <[email protected]>
9 tasks
dsyme
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 This PR was created by Repo Assist in response to issue #563.
Summary
This PR adds a new
Deedle.MicrosoftMLpackage that bridges Deedle'sFrame<'R, string>/Series<'K, 'V>types with ML.NET'sIDataViewpipeline infrastructure.What's included
src/Deedle.MicrosoftML/DataView.fsFrameDataView(customIDataView) +Frame.toDataView/Frame.ofDataViewTransforms.fsPipeline.*helpers:fitEstimator,fitTransform,fitTransformOn,applyTransformerExtensions.fs[(Extension)]methods:ToDataView,Transform,FitTransformtests/Deedle.MicrosoftML.Tests/17 tests covering:
Frame → IDataView → FrameNaN/ empty string)NormalizeMinMaxtransform integrationfitEstimator/applyTransformerseparation of concernsfitTransformOn(train on one frame, transform another)Other changes
paket.dependencies– addsnuget Microsoft.ML(resolved to 5.0.0)Deedle.sln– adds both new projectsUsage (F#)
Usage (C#)
Closes #563
Epic: #676