Class Dataset
Definition
- Namespace:
- Tizen.MachineLearning.Train
- Assembly:
- Tizen.MachineLearning.Train.dll
- API Level:
- 10
- Feature:
- http://tizen.org/feature/machine_learning.training
Create the dataset for neural network
C#Copypublic class Dataset : IDisposable
- Inheritance
-
Dataset
Remarks
Use this class to create a dataset. dataset should be released using Dispose(). dataset is available until the model is released.
Constructors
Declaration
C#Copypublic Dataset()
API Level: 10
Methods
Declaration
C#Copypublic void AddFile(NNTrainerDatasetMode mode, string file)
Parameters
Type | Name | Description |
---|---|---|
NNTrainerDatasetMode | mode | The phase where this file should be used. |
String | file | File path. |
Remarks
Use this method to add a data file from where data is retrieved. If you want to access only internal storage by using this method, you should add privilege %http://tizen.org/privilege/mediastorage. Or, if you want to access only external storage by using this method, you should add privilege %http://tizen.org/privilege/externalstorage. If you can access both storage, you must add all privilege
API Level: 10
Declaration
C#Copypublic void Dispose()
API Level: 10
Dispose(Boolean)
Releases any unmanaged resources used by this object including opened handle.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
API Level: 10
Declaration
C#Copyprotected void Finalize()
Remarks
Use this method to destroy dataset. Fails if dataset is owned by a model.
API Level: 10
Declaration
C#Copypublic void SetProperty(NNTrainerDatasetMode mode, params string[] property)
Parameters
Type | Name | Description |
---|---|---|
NNTrainerDatasetMode | mode | The mode to set the property. |
String[] | property | Property for dataset. |
Remarks
Use this method to set dataset property for a specific mode. The input format of property must be 'key = value' format.