Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo de Almeida Gonzaga <[email protected]>
  • Loading branch information
ricdevz committed May 13, 2016
1 parent 2ba9fbc commit 5686de2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sml/include/sml.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ struct sml_variables_list;
typedef bool (*sml_read_state_cb) (struct sml_object *sml, void *data);

/**
* @brief Called everytime the SML made a prediction.
* @brief Called every time the SML made a prediction.
* @param sml The ::sml_object Object.
* @param changed A ::sml_variables_list with the predicted variables.
* @param data User defined data.
Expand Down
4 changes: 2 additions & 2 deletions sml/include/sml_ann.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ extern "C" {
* of their training. In order to reduce this problem the following methods were implemented.
*
* The first method is called pseudo-rehearsal (the default one), in this method only one neural network is created
* and everytime it needs be retrained, random inputs are generated and
* and every time it needs be retrained, random inputs are generated and
* feed to the network. The corresponding outputs are stored and used to train the neural network
* with the new collected data.
*
* The second method of operation consists in creating N neural networks,
* that are very specific for each pattern that SML encounters and everytime the SML wants to make a prediction,
* that are very specific for each pattern that SML encounters and every time the SML wants to make a prediction,
* it will choose which is the best neural network for the current situation.
* It is possible to set a limit of how many neural networks SML will have in memory, this limit
* can be set with ::sml_ann_set_cache_max_size. This cache implements the LRU algorithm so,
Expand Down
2 changes: 1 addition & 1 deletion sml/include/sml_fuzzy.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ bool sml_fuzzy_output_set_accumulation(struct sml_object *sml, struct sml_variab
* - triange from 3.4 to 4.6, with peak at 4
* - ramp from 4.4 to 5
*
* Terms autocreated are also rebalanced everytime ::sml_variable_set_range is
* Terms autocreated are also rebalanced every time ::sml_variable_set_range is
* called. So new terms are created to make sure all variable range is covered.
* And terms that are no longer necessary are removed.
*
Expand Down
4 changes: 2 additions & 2 deletions sml/sml_fuzzy/src/sml_fuzzy_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ sml_fuzzy_variable_get_value(struct sml_variable *variable)
if (output_var)
return _var_get_val_in_range(fl_var, output_var->getOutputValue());

sml_warning("Trying to use unkown class of variable");
sml_warning("Trying to use unknown class of variable");
return NAN;
}

Expand All @@ -576,7 +576,7 @@ sml_fuzzy_variable_set_value(struct sml_variable *variable, float value)
return;
}

sml_warning("Trying to use unkown class of variable");
sml_warning("Trying to use unknown class of variable");
}

struct sml_variable *
Expand Down

0 comments on commit 5686de2

Please sign in to comment.