Skip to content

Commit 9e61ee6

Browse files
committed
Fixed build: #100
1 parent f4c1ede commit 9e61ee6

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

knp/base-framework/include/knp/framework/data_processing/classification/image.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class KNP_DECLSPEC Dataset final : public classification::Dataset
7777

7878
/**
7979
* @brief Create a incrementing image to spikes converter
80-
* @detail Spikes will be sent for active_steps steps, and spikes wont be sent for steps_per_image-active_steps
80+
* @details Spikes will be sent for active_steps steps, and spikes wont be sent for steps_per_image-active_steps
8181
* steps. This converter considered incrementing because it will add state_increment_factor * image_pixel to states,
8282
* and when value is greater than one, this considered a spike.
8383
* @param active_steps Amount of active steps, active steps are steps when spikes being sent, must be <

knp/base-framework/include/knp/framework/inference_evaluation/classification.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,36 @@ class KNP_DECLSPEC InferenceResultForClass
4141
public:
4242
/**
4343
* @brief Get true positives.
44-
* @ret Amount of times model, that is supposed to predict dog, predicted dog when it is a dog.
44+
* @return Amount of times model, that is supposed to predict dog, predicted dog when it is a dog.
4545
*/
4646
[[nodiscard]] size_t get_true_positives() const { return true_positives_; }
4747

4848
/**
4949
* @brief Get false negatives.
50-
* @ret Amount of times model, that is supposed to predict dog, predicted not a dog when it is a dog.
50+
* @return Amount of times model, that is supposed to predict dog, predicted not a dog when it is a dog.
5151
*/
5252
[[nodiscard]] size_t get_false_negatives() const { return false_negatives_; }
5353

5454
/**
5555
* @brief Get false positives.
56-
* @ret Amount of times model, that is supposed to predict dog, predicted dog when it is not a dog.
56+
* @return Amount of times model, that is supposed to predict dog, predicted dog when it is not a dog.
5757
*/
5858
[[nodiscard]] size_t get_false_positives() const { return false_positives_; }
5959

6060
/**
6161
* @brief Get true negatives.
62-
* @ret Amount of times model, that is supposed to predict dog, predicted not a dog when it is a not a dog.
62+
* @return Amount of times model, that is supposed to predict dog, predicted not a dog when it is a not a dog.
6363
*/
6464
[[nodiscard]] size_t get_true_negatives() const { return true_negatives_; }
6565

6666
/**
6767
* @brief Shortcut for getting total votes.
68-
* @ret Total votes.
68+
* @return Total votes.
6969
*/
7070
[[nodiscard]] size_t get_total_votes() const { return true_positives_ + false_negatives_ + false_positives_; }
7171

7272
/**
73-
* @detail A class to process inference results.
73+
* @details A class to process inference results.
7474
*/
7575
class KNP_DECLSPEC InferenceResultsProcessor
7676
{
@@ -79,7 +79,7 @@ class KNP_DECLSPEC InferenceResultForClass
7979
* @brief Process inference results. Suited for classification models.
8080
* @param spikes All spikes from inference.
8181
* @param dataset Dataset.
82-
* @return processed inference results for each class.
82+
* @returnurn processed inference results for each class.
8383
*/
8484
void process_inference_results(
8585
const std::vector<knp::core::messaging::SpikeMessage> &spikes,
@@ -93,7 +93,7 @@ class KNP_DECLSPEC InferenceResultForClass
9393

9494
/**
9595
* @brief Get inference results.
96-
* @ret Inference results.
96+
* @return Inference results.
9797
*/
9898
[[nodiscard]] auto const &get_inference_results() const { return inference_results_; }
9999

knp/base-framework/include/knp/framework/inference_evaluation/perfomance_metrics.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ namespace knp::framework::inference_evaluation
3131
* @brief Calculate precision.
3232
* @param true_positives Amount of times model, that is supposed to predict dog, predicted dog when it is a dog.
3333
* @param false_positives Amount of times model, that is supposed to predict dog, predicted dog when it is not a dog.
34+
* @ret Precision.
3435
*/
3536
KNP_DECLSPEC float get_precision(size_t true_positives, size_t false_positives);
3637

@@ -50,6 +51,7 @@ KNP_DECLSPEC float get_recall(size_t true_positives, size_t false_negatives);
5051
* @param false_positives Amount of times model, that is supposed to predict dog, predicted dog when it is not a dog.
5152
* @param true_negatives Amount of times model, that is supposed to predict dog, predicted not a dog when it is a not a
5253
* dog.
54+
* @ret Prevalence.
5355
*/
5456
KNP_DECLSPEC float get_prevalence(
5557
size_t true_positives, size_t false_negatives, size_t false_positives, size_t true_negatives);
@@ -62,6 +64,7 @@ KNP_DECLSPEC float get_prevalence(
6264
* @param false_positives Amount of times model, that is supposed to predict dog, predicted dog when it is not a dog.
6365
* @param true_negatives Amount of times model, that is supposed to predict dog, predicted not a dog when it is a not a
6466
* dog.
67+
* @ret Accuracy.
6568
*/
6669
KNP_DECLSPEC float get_accuracy(
6770
size_t true_positives, size_t false_negatives, size_t false_positives, size_t true_negatives);
@@ -71,6 +74,7 @@ KNP_DECLSPEC float get_accuracy(
7174
* @brief Calculate f measure.
7275
* @param precision Precision.
7376
* @param recall Recall.
77+
* @ret FMeasure.
7478
*/
7579
KNP_DECLSPEC float get_f_measure(float precision, float recall);
7680

0 commit comments

Comments
 (0)