Synapseml  0.10.0
Public Member Functions | Static Public Member Functions | List of all members
Synapse.ML.Cntk.CNTKModel Class Reference

CNTKModel implements CNTKModel More...

Inheritance diagram for Synapse.ML.Cntk.CNTKModel:
Inheritance graph
[legend]
Collaboration diagram for Synapse.ML.Cntk.CNTKModel:
Collaboration graph
[legend]

Public Member Functions

 CNTKModel ()
 Creates a CNTKModel without any parameters. More...
 
 CNTKModel (string uid)
 Creates a CNTKModel with a UID that is used to give the CNTKModel a unique ID. More...
 
CNTKModel SetBatchInput (bool value)
 Sets value for batchInput More...
 
CNTKModel SetConvertOutputToDenseVector (bool value)
 Sets value for convertOutputToDenseVector More...
 
CNTKModel SetFeedDict (Dictionary< string, string > value)
 Sets value for feedDict More...
 
CNTKModel SetFetchDict (Dictionary< string, string > value)
 Sets value for fetchDict More...
 
CNTKModel SetMiniBatcher (JavaTransformer value)
 Sets value for miniBatcher More...
 
CNTKModel SetModelLocation (string value)
 Sets value for model More...
 
bool GetBatchInput ()
 Gets batchInput value More...
 
bool GetConvertOutputToDenseVector ()
 Gets convertOutputToDenseVector value More...
 
Dictionary< string, string > GetFeedDict ()
 Gets feedDict value More...
 
Dictionary< string, string > GetFetchDict ()
 Gets fetchDict value More...
 
JavaTransformer GetMiniBatcher ()
 Gets miniBatcher value More...
 
object GetModel ()
 Gets model value More...
 
void Save (string path)
 Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala. More...
 
JavaMLWriter Write ()
 
Returns
a JavaMLWriter instance for this ML instance.

 
JavaMLReader< CNTKModelRead ()
 Get the corresponding JavaMLReader instance. More...
 

Static Public Member Functions

static CNTKModel Load (string path)
 Loads the CNTKModel that was previously saved using Save(string). More...
 

Detailed Description

CNTKModel implements CNTKModel

Constructor & Destructor Documentation

◆ CNTKModel() [1/2]

Synapse.ML.Cntk.CNTKModel.CNTKModel ( )
inline

Creates a CNTKModel without any parameters.

◆ CNTKModel() [2/2]

Synapse.ML.Cntk.CNTKModel.CNTKModel ( string  uid)
inline

Creates a CNTKModel with a UID that is used to give the CNTKModel a unique ID.

Parameters
uidAn immutable unique ID for the object and its derivatives.

Member Function Documentation

◆ GetBatchInput()

bool Synapse.ML.Cntk.CNTKModel.GetBatchInput ( )

Gets batchInput value

Returns
batchInput: whether to use a batcher

◆ GetConvertOutputToDenseVector()

bool Synapse.ML.Cntk.CNTKModel.GetConvertOutputToDenseVector ( )

Gets convertOutputToDenseVector value

Returns
convertOutputToDenseVector: whether to convert the output to dense vectors

◆ GetFeedDict()

Dictionary<string, string> Synapse.ML.Cntk.CNTKModel.GetFeedDict ( )
inline

Gets feedDict value

Returns
feedDict: Provide a map from CNTK/ONNX model input variable names (keys) to column names of the input dataframe (values)

◆ GetFetchDict()

Dictionary<string, string> Synapse.ML.Cntk.CNTKModel.GetFetchDict ( )
inline

Gets fetchDict value

Returns
fetchDict: Provide a map from column names of the output dataframe (keys) to CNTK/ONNX model output variable names (values)

◆ GetMiniBatcher()

JavaTransformer Synapse.ML.Cntk.CNTKModel.GetMiniBatcher ( )
inline

Gets miniBatcher value

Returns
miniBatcher: Minibatcher to use

◆ GetModel()

object Synapse.ML.Cntk.CNTKModel.GetModel ( )

Gets model value

Returns
model: Array of bytes containing the serialized CNTKModel

◆ Load()

static CNTKModel Synapse.ML.Cntk.CNTKModel.Load ( string  path)
static

Loads the CNTKModel that was previously saved using Save(string).

Parameters
pathThe path the previous CNTKModel was saved to
Returns
New CNTKModel object, loaded from path.

◆ Read()

JavaMLReader<CNTKModel> Synapse.ML.Cntk.CNTKModel.Read ( )

Get the corresponding JavaMLReader instance.

Returns
an JavaMLReader<CNTKModel> instance for this ML instance.

◆ Save()

void Synapse.ML.Cntk.CNTKModel.Save ( string  path)

Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.

Parameters
pathThe path to save the object to

◆ SetBatchInput()

CNTKModel Synapse.ML.Cntk.CNTKModel.SetBatchInput ( bool  value)

Sets value for batchInput

Parameters
valuewhether to use a batcher
Returns
New CNTKModel object

◆ SetConvertOutputToDenseVector()

CNTKModel Synapse.ML.Cntk.CNTKModel.SetConvertOutputToDenseVector ( bool  value)

Sets value for convertOutputToDenseVector

Parameters
valuewhether to convert the output to dense vectors
Returns
New CNTKModel object

◆ SetFeedDict()

CNTKModel Synapse.ML.Cntk.CNTKModel.SetFeedDict ( Dictionary< string, string >  value)

Sets value for feedDict

Parameters
valueProvide a map from CNTK/ONNX model input variable names (keys) to column names of the input dataframe (values)
Returns
New CNTKModel object

◆ SetFetchDict()

CNTKModel Synapse.ML.Cntk.CNTKModel.SetFetchDict ( Dictionary< string, string >  value)

Sets value for fetchDict

Parameters
valueProvide a map from column names of the output dataframe (keys) to CNTK/ONNX model output variable names (values)
Returns
New CNTKModel object

◆ SetMiniBatcher()

CNTKModel Synapse.ML.Cntk.CNTKModel.SetMiniBatcher ( JavaTransformer  value)

Sets value for miniBatcher

Parameters
valueMinibatcher to use
Returns
New CNTKModel object

◆ SetModelLocation()

CNTKModel Synapse.ML.Cntk.CNTKModel.SetModelLocation ( string  value)

Sets value for model

Parameters
valueArray of bytes containing the serialized CNTKModel
Returns
New CNTKModel object

The documentation for this class was generated from the following file: