Soletta machine learning
Machine learning for IoT devices
 All Data Structures Files Functions Typedefs Enumerations Enumerator Groups Pages
sml_ann.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Soletta Project
3  *
4  * Copyright (C) 2015 Intel Corporation. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #pragma once
20 #include <sml.h>
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
139 };
158 };
171 struct sml_object *sml_ann_new(void);
172 
180 bool sml_is_ann(struct sml_object *sml);
181 
188 bool sml_ann_supported(void);
189 
203 
220 bool sml_ann_set_activation_function_candidates(struct sml_object *sml, enum sml_ann_activation_function *functions, unsigned int size);
221 
222 
238 bool sml_ann_set_max_neurons(struct sml_object *sml, unsigned int max_neurons);
239 
259 bool sml_ann_set_candidate_groups(struct sml_object *sml, unsigned int candidate_groups);
260 
277 bool sml_ann_set_training_epochs(struct sml_object *sml, unsigned int training_epochs);
278 
292 bool sml_ann_set_desired_error(struct sml_object *sml, float desired_error);
293 
311 bool sml_ann_set_cache_max_size(struct sml_object *sml, unsigned int max_size);
312 
329 bool sml_ann_set_initial_required_observations(struct sml_object *sml, unsigned int required_observations);
330 
343 bool sml_ann_use_pseudorehearsal_strategy(struct sml_object *sml, bool use_pseudorehearsal);
347 #ifdef __cplusplus
348 }
349 #endif
Definition: sml_ann.h:150
Definition: sml_ann.h:156
Definition: sml_ann.h:154
sml_ann_training_algorithm
Algorithm types used to train a neural network.
Definition: sml_ann.h:133
bool sml_ann_set_initial_required_observations(struct sml_object *sml, unsigned int required_observations)
Set the required number of observations to train the neural network.
bool sml_ann_set_activation_function_candidates(struct sml_object *sml, enum sml_ann_activation_function *functions, unsigned int size)
Set the neural networks activation function candidates.
sml_ann_activation_function
The functions that are used by the neurons to produce an output.
Definition: sml_ann.h:147
Definition: sml_ann.h:152
bool sml_ann_use_pseudorehearsal_strategy(struct sml_object *sml, bool use_pseudorehearsal)
Set the pseudorehearsal strategy.
bool sml_ann_set_training_algorithm(struct sml_object *sml, enum sml_ann_training_algorithm algorithm)
Set the neural network training algorithm.
Definition: sml_ann.h:134
Definition: sml_ann.h:148
bool sml_ann_set_candidate_groups(struct sml_object *sml, unsigned int candidate_groups)
Set the number of neural network candidates.
struct sml_object * sml_ann_new(void)
Creates a SML neural networks engine.
bool sml_ann_set_training_epochs(struct sml_object *sml, unsigned int training_epochs)
Set the neural network train epochs.
bool sml_ann_set_max_neurons(struct sml_object *sml, unsigned int max_neurons)
Set the maximum number of neurons in the network.
Definition: sml_ann.h:138
bool sml_is_ann(struct sml_object *sml)
Check if the SML object is a neural network engine.
bool sml_ann_set_desired_error(struct sml_object *sml, float desired_error)
Set the neural network desired error.
bool sml_ann_supported(void)
Check if SML was built with neural networks support.
bool sml_ann_set_cache_max_size(struct sml_object *sml, unsigned int max_size)
Set the maximum number of neural networks in the cache.