[MachineLearning.Train] Modify comment for class and method for ACR
authorhyunil park <hyunil46.park@samsung.com>
Tue, 2 Aug 2022 10:14:12 +0000 (19:14 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 23 Aug 2022 05:50:26 +0000 (14:50 +0900)
- Modify comment for ACR

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Commons.cs
src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Dataset.cs
src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Layer.cs
src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Model.cs
src/Tizen.MachineLearning.Train/Tizen.MachineLearning.Train/Optimizer.cs

index b5a7cf6..471ef62 100644 (file)
@@ -50,27 +50,27 @@ namespace Tizen.MachineLearning.Train
         /// </summary>
         Layer = 1,
         /// <summary>
-        /// Model summary layer's including weight information
+        /// Model summary weight information that layer has.
         /// </summary>
         Tensor = 2
     }
 
     /// <summary>
-    /// Enumeration for the neural network.
+    /// Enumeration of model formats for the neural network.
     /// </summary>
     /// <since_tizen> 10 </since_tizen>
     public enum NNTrainerModelFormat
     {
         /// <summary>
-        /// Raw bin file saves model weights required for inference and training without any configurations
+        /// Raw bin file stores model weights required for inference and training without any configurations
         /// </summary>
         Bin = 0,
         /// <summary>
-        /// Ini format file saves model configurations.
+        /// Ini format file stores model configurations.
         /// </summary>
         Ini = 1,
         /// <summary>
-        /// Ini with bin format file saves configurations with parameters required for inference and training.
+        /// Ini with bin format file stores configurations with parameters required for inference and training.
         /// </summary>
         IniWithBin = 2
     }
@@ -234,15 +234,15 @@ namespace Tizen.MachineLearning.Train
     public enum NNTrainerDatasetMode
     {
         /// <summary>
-        /// The given data is for used when training
+        /// Data is used when training
         /// </summary>
         Train = 0,
         /// <summary>
-        /// The given data is for used when validating
+        /// Data is used when validating
         /// </summary>
         Valid = 1,
         /// <summary>
-        /// The given data is for used when testing
+        /// Data is used when testing
         /// </summary>
         Test = 2,
     }
index 57b3283..51620c5 100644 (file)
@@ -20,10 +20,10 @@ using System.IO;
 namespace Tizen.MachineLearning.Train
 {
     /// <summary>
-    /// Constructs the dataset.
+    /// Create the dataset for neural network
     /// </summary>
     /// <remarks>
-    /// Use this function to create a dataset. dataset should be released using Dispose().
+    /// Use this class to create a dataset. dataset should be released using Dispose().
     /// dataset is available until the model is released.
     /// </remarks>
     /// <since_tizen> 10 </since_tizen>
@@ -47,7 +47,7 @@ namespace Tizen.MachineLearning.Train
         /// </summary>
         /// <since_tizen> 10 </since_tizen>
         /// <remarks>
-        /// Use this function to destroy dataset. Fails if dataset is owned by a model.
+        /// Use this method to destroy dataset. Fails if dataset is owned by a model.
         /// </remarks>
         ~Dataset()
         {
@@ -94,15 +94,15 @@ namespace Tizen.MachineLearning.Train
         /// Adds data file to dataset.
         /// </summary>
         /// <remarks>
-        /// Use this function to add a data file from where data is retrieved.
-        /// If you want to access only internal storage by using this function,
+        /// 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 function, you should add
+        /// 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
         /// </remarks>
-        /// <param name="mode">The phase where this generator should be used.</param>
-        /// <param name="file">file path.</param>
+        /// <param name="mode">The phase where this file should be used.</param>
+        /// <param name="file">File path.</param>
         /// <since_tizen> 10 </since_tizen>
         public void AddFile(NNTrainerDatasetMode mode, string file)
         {
@@ -123,11 +123,11 @@ namespace Tizen.MachineLearning.Train
         /// Sets the neural network dataset property.
         /// </summary>
         /// <remarks>
-        /// Use this function to set dataset property for a specific mode.
+        /// Use this method to set dataset property for a specific mode.
         /// The input format of property must be 'key = value' format.
         /// </remarks>
         /// <param name="mode">The mode to set the property.</param>
-        /// <param name="property">property for dataset.</param>
+        /// <param name="property">Property for dataset.</param>
         /// <since_tizen> 10 </since_tizen>
         public void SetProperty(NNTrainerDatasetMode mode, params string[] property)
         {
index bc01c12..2135fa1 100644 (file)
@@ -23,8 +23,8 @@ namespace Tizen.MachineLearning.Train
     /// Creates a neural network layer.
     /// </summary>
     /// <remarks>
-    /// Use this function to create neural network layer.
-    /// If the function succeeds, layer must be released using Dispose(), if not added to a model.
+    /// Use this class to create neural network layer.
+    /// layer must be released using Dispose(), if not added to a model.
     /// If added to a model by AddLayer method of Model, layer is available until the model is released. so
     /// Dispose() must never be used.
     /// </remarks>
@@ -60,7 +60,7 @@ namespace Tizen.MachineLearning.Train
         /// </summary>
         /// <since_tizen> 10 </since_tizen>
         /// <remarks>
-        /// Use this function to destroy neural network layer. Fails if layer is owned by a model.
+        /// Use this method to destroy neural network layer. Fails if layer is owned by a model.
         /// </remarks>
         ~Layer()
         {
@@ -113,7 +113,7 @@ namespace Tizen.MachineLearning.Train
         /// Sets the neural network layer Property.
         /// </summary>
         /// <remarks>
-        /// Use this function to set neural network layer Property.
+        /// Use this method to set neural network layer Property.
         /// The input format of property must be 'key = value' format.
         /// </remarks>
         /// <param name="property">property for layer.</param>
index 77d610d..1b053b0 100644 (file)
@@ -23,12 +23,12 @@ namespace Tizen.MachineLearning.Train
     /// Constructs the neural network model
     /// </summary>
     /// <remarks>
-    /// Use this function to create neural network model.
+    /// Use this class to create neural network model.
     /// The Model class provides interfaces to construct, complle, run, adding layer
     /// and etc with neural networks.
-    /// If you want to access only internal storage by using this function,
+    /// 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 function, you should add
+    /// want to access only external storage by using this method, you should add
     /// privilege %http://tizen.org/privilege/externalstorage. If you want to access
     /// both storage, you must add all the privileges.
     /// </remarks>
@@ -111,13 +111,13 @@ namespace Tizen.MachineLearning.Train
         /// Compiles and finalizes the neural network model with the hyperparameter.
         /// </summary>
         /// <remarks>
-        /// Use this function to initialize neural network model.Various
-        /// hyperparameter before compile the model can be set. Once compiled,
+        /// Use this method to initialize neural network model.Various
+        /// hyperparameter can be set before compile the model. Once compiled,
         /// any modification to the properties of model or layers/dataset/optimizer in
         /// the model will be restricted. Further, addition of layers or changing the
         /// optimizer/dataset of the model will not be permitted.
         /// The input format of hyperparameter must be 'key = value' format.
-        /// <param name="hyperparameter">Hyperparameters for train complie.</param>
+        /// <param name="hyperparameter">Hyperparameter for train complie.</param>
         /// </remarks>
         /// <since_tizen> 10 </since_tizen>
         public void Compile(params string[] hyperparameter)
@@ -137,8 +137,8 @@ namespace Tizen.MachineLearning.Train
         /// Trains the neural network model with the hyperparameter.
         /// </summary>
         /// <remarks>
-        /// Use this function to train the compiled neural network model with
-        /// the passed training hyperparameters. This function will return once the
+        /// Use this method to train the compiled neural network model with
+        /// the passed training hyperparameters. This method will return once the
         /// training, along with requested validation and testing, is completed.
         /// The input format of hyperparameter must be 'key = value' format.
         /// </remarks>
@@ -160,9 +160,6 @@ namespace Tizen.MachineLearning.Train
         /// <summary>
         /// Gets the summary of the neural network model.
         /// </summary>
-        /// <remarks>
-        /// Use this function to get the summary of the neural network model.
-        /// </remarks>
         /// <param name="verbosity">Verbose level of the summary.</param>
         /// <returns>On return, a string value. The summary of the current model. Avoid logic to parse and exploit summary if possible.</returns>
         /// <since_tizen> 10 </since_tizen>
@@ -180,17 +177,17 @@ namespace Tizen.MachineLearning.Train
         /// Saves the model.
         /// </summary>
         /// <remarks>
-        /// Use this function to save the current model. format
+        /// Use this method to save the current model. Format
         /// describes various formats in which various selections of the
         /// parameters of the models can be saved. Some formats may save
         /// parameters required for training. Some other formats may save model
-        /// configurations. Unless stated otherwise, Compile() has to
-        /// be called upon the a model before calling this function.
+        /// configurations. Unless stated otherwise, <see cref="Compile"/> has to
+        /// be called upon the a model before calling this method.
         /// Saved ini, if any, is not guaranteed to be identical to the original
-        /// ini that maybe used to load the model.
-        /// If you want to access only internal storage by using this function,
+        /// ini that might have been used to load the model.
+        /// 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 function, you should add
+        /// want to access only external storage by using this method, you should add
         /// privilege %http://tizen.org/privilege/externalstorage. If you want to access
         /// both storage, you must add all the privileges.
         /// </remarks>
@@ -210,17 +207,17 @@ namespace Tizen.MachineLearning.Train
         /// Loads the model.
         /// </summary>
         /// <remarks>
-        /// Use this function to load the current model. format
+        /// Use this method to load the current model. Format
         /// describes various formats in which various selections of the
         /// parameters of the models can be loaded. Some formats may load
         /// parameters required for training. Some other formats may load model
         /// configurations. Unless stated otherwise, loading model configuration requires
-        /// a freshly constructed model with new model() without Compile(),
+        /// a freshly constructed model with new Model() without <see cref="Compile"/>,
         /// loading model parameter requires Compile() to be called upon the model
-        /// before calling this function.
-        /// If you want to access only internal storage by using this function,
+        /// before calling this method.
+        /// 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 function, you should add
+        /// want to access only external storage by using this method, you should add
         /// privilege %http://tizen.org/privilege/externalstorage. If you want to access
         /// both storage, you must add all the privileges.
         /// </remarks>
@@ -240,10 +237,10 @@ namespace Tizen.MachineLearning.Train
         /// Adds layer in neural network model.
         /// </summary>
         /// <remarks>
-        /// Use this function to add a layer to the model. The layer is added to
+        /// Use this method to add a layer to the model. The layer is added to
         /// the end of the existing layers in the model. This transfers the
         /// ownership of the layer to the network. No need to destroy the layer once it
-        /// is added to a model. layer is available until the model is released. so
+        /// is added to a model. Layer is available until the model is released, so
         /// Dispose() must never be used.
         /// </remarks>
         /// <param name="layer"> The instance of Layer class </param>
@@ -267,11 +264,11 @@ namespace Tizen.MachineLearning.Train
         /// Gets neural network layer from the model with the given name.
         /// </summary>
         /// <remarks>
-        /// Use this function to get already created Neural Network Layer.
+        /// Use this method to get already created Neural Network Layer.
         /// The returned layer must not be deleted as it is owned by the model.
         /// layerName can be set by SetProperty method of Layer.
-        /// Returned layer instance is different with same layerName, but the
-        /// Internally native layer handle is same.
+        /// Returned layer instance is different with same layerName, but internally the
+        /// native layer handle is same.
         /// </remarks>
         /// <param name="layerName"> Name of the already created layer.</param>
         /// <returns>layer instance</returns>
@@ -294,9 +291,9 @@ namespace Tizen.MachineLearning.Train
         /// Sets the optimizer for the neural network model.
         /// </summary>
         /// <remarks>
-        /// Use this function to set neural network optimizer. This transfers
+        /// Use this method to set neural network optimizer. This transfers
         /// the ownership of the optimizer to the network. No need to destroy the
-        /// optimizer if it is to a model.
+        /// optimizer if it is added to a model.
         /// </remarks>
         /// <param name="optimizer"> The instance of Optimizer class </param>
         /// <since_tizen> 10 </since_tizen>
@@ -315,7 +312,7 @@ namespace Tizen.MachineLearning.Train
         /// Sets the dataset (data provider) for the neural network model.
         /// </summary>
         /// <remarks>
-        /// Use this function to set dataset for running the model. The dataset
+        /// Use this method to set dataset for running the model. The dataset
         /// will provide training, validation and test data for the model. This transfers
         /// the ownership of the dataset to the network. No need to destroy the dataset
         /// once it is set to a model.
@@ -370,9 +367,8 @@ namespace Tizen.MachineLearning.Train
         /// Gets output tensors information of the model.
         /// </summary>
         /// <remarks>
-        /// Use this function to get output tensors information of the model.
-        /// destroy tensorInfoHandle with TensorsInfo.Dispose() after use.
-        /// model must be compiled before calling this function.
+        /// Use this method to get output tensors information of the model.
+        /// Model must be compiled before calling this method.
         /// </remarks>
         /// <returns>TensorsInfo instance</returns>
         /// <since_tizen> 10 </since_tizen>
@@ -390,9 +386,8 @@ namespace Tizen.MachineLearning.Train
         /// Gets input tensors information of the model.
         /// </summary>
         /// <remarks>
-        /// Use this function to get input tensors information of the model.
-        /// destroy tensorInfoHandle with TensorsInfo.Dispose() after use.
-        /// model must be compiled before calling this function.
+        /// Use this method to get input tensors information of the model.
+        /// Model must be compiled before calling this method.
         /// </remarks>
         /// <returns>TensorsInfo instance</returns>
         /// <since_tizen> 10 </since_tizen>
index bf60437..a8ac08b 100644 (file)
@@ -23,7 +23,7 @@ namespace Tizen.MachineLearning.Train
     /// Creates a neural network optimizer.
     /// </summary>
     /// <remarks>
-    /// Use this function to create neural network optimizer. If not set to
+    /// Use this class to create neural network optimizer. If not set to
     /// model, optimizer should be released using Dispose().
     /// If set to a model, optimizer is available until model is released.
     /// </remarks>
@@ -49,7 +49,7 @@ namespace Tizen.MachineLearning.Train
         /// </summary>
         /// <since_tizen> 10 </since_tizen>
         /// <remarks>
-        /// Use this function to destroy neural network optimizer. Fails if layer is owned by a model.
+        /// Use this method to destroy neural network optimizer. Fails if layer is owned by a model.
         /// </remarks>
         ~Optimizer()
         {
@@ -95,7 +95,7 @@ namespace Tizen.MachineLearning.Train
         /// Sets the neural network optimizer property
         /// </summary>
         /// <remarks>
-        /// Use this function to set neural network optimizer property.
+        /// Use this method to set neural network optimizer property.
         /// The input format of property must be 'key = value' format.
         /// </remarks>
         /// <param name="property">property for optimizer.</param>