BioFSharp


DataModel

Namespace: FSharpML

Nested types and modules

TypeDescription
DataModel<'info>
TrainTestSplitInfo

Metadata info for a traintestsplit

Functions and values

Function or valueDescription
appendFilterByColumn(...)
Signature: columnName:string -> lower:float -> upper:float -> dataModel:DataModel<'?20821> -> DataModel<'?20821>
Type parameters: '?20821

Keeps only those rows that are between lower and upper range condition

createDataModel context dataview
Signature: context:(type) -> dataview:(type) -> DataModel<'?20789>
Type parameters: '?20789

Creates a data model record (use createDataModelWith to include metadata information)

createDataModelWith(...)
Signature: mlc:(type) -> dataview:(type) -> metaData:'?20791 -> DataModel<'?20791>
Type parameters: '?20791

Creates a data model record with metadata information

createTrainTestSplitInfo(...)
Signature: splitFraction:float -> stratificationColumn:string option -> TrainTestSplitInfo
fromBinaryStream mlc stream
Signature: mlc:(type) -> stream:(type) -> DataModel<obj>
Type parameters: 'Trow

Reads a data model from a binary file

fromBinaryStreamWith(...)
Signature: mlc:(type) -> separatorChar:char -> hasHeader:bool -> stream:string -> DataModel<obj>
Type parameters: 'Trow

Reads a data model from a binary file

fromTextFile mlc path
Signature: mlc:(type) -> path:string -> DataModel<obj>
Type parameters: 'Trow

Reads a data model from a text file

fromTextFileWith(...)
Signature: mlc:(type) -> separatorChar:char -> hasHeader:bool -> path:string -> DataModel<obj>
Type parameters: 'Trow

Reads a data model from a text file

getColumn columnName dataModel
Signature: columnName:string -> dataModel:DataModel<obj> -> IEnumerable<'a>
Type parameters: 'a

Returns all values of a column

getContext(dataModel)
Signature: dataModel:DataModel<'?20809> -> (type)
Type parameters: '?20809

Returns the MLcontext

ofDataview mlc dataview
Signature: mlc:(type) -> dataview:(type) -> DataModel<obj>
Type parameters: 'info

Creates a data model from a given data view

ofSeq mlc data
Signature: mlc:(type) -> data:seq<'Trow> -> DataModel<'?20796>
Type parameters: 'Trow, '?20796

Creates a data model from seq<'Trow>

saveAsBinary stream dataModel
Signature: stream:Stream -> dataModel:DataModel<'?20817> -> unit
Type parameters: '?20817

Saves data view to binary file

saveAsText(...)
Signature: separatorChar:char -> hasHeader:bool -> stream:Stream -> dataModel:DataModel<'?20815> -> unit
Type parameters: '?20815

Saves data view to text file

toDataview(dataModel)
Signature: dataModel:DataModel<'?20811> -> (type)
Type parameters: '?20811

Returns the data view

toSeq(dataModel)
Signature: dataModel:DataModel<'a> -> IEnumerable<'TRow>
Type parameters: 'a, 'TRow
trainTestSplit testfraction dataModel
Signature: testfraction:float -> dataModel:DataModel<'?20838> -> DataModel<TrainTestSplitInfo> * DataModel<TrainTestSplitInfo>
Type parameters: '?20838

Splits a dataset into the train set and the test set according to the given fraction.

trainTestSplitWith(...)
Signature: testfraction:float -> stratification:string -> seed:int -> dataModel:DataModel<'?20834> -> DataModel<TrainTestSplitInfo> * DataModel<TrainTestSplitInfo>
Type parameters: '?20834

Splits a dataset into the train set and the test set according to the given fraction. Respects the StratificationColumn if provided.

trainTestSplitWithStrat(...)
Signature: testfraction:float -> stratification:string -> dataModel:DataModel<'?20836> -> DataModel<TrainTestSplitInfo> * DataModel<TrainTestSplitInfo>
Type parameters: '?20836

Splits a dataset into the train set and the test set according to the given fraction. Respects the StratificationColumn if provided.

tryGetMetadata(dataModel)
Signature: dataModel:DataModel<'?20813> -> '?20813 option
Type parameters: '?20813

Try to return meta data else None

Fork me on GitHub