mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-11-13 13:57:19 +01:00
35 lines
838 B
C++
35 lines
838 B
C++
#ifndef MLPP_TESTS_H
|
|
#define MLPP_TESTS_H
|
|
|
|
// TODO port this class to use the test module once it's working
|
|
// Also don't forget to remove it's bindings
|
|
|
|
#include "core/containers/vector.h"
|
|
|
|
#include "core/object/reference.h"
|
|
|
|
#include "core/string/ustring.h"
|
|
|
|
class MLPPTests : public Reference {
|
|
GDCLASS(MLPPTests, Reference);
|
|
|
|
public:
|
|
void test_statistics();
|
|
void test_linear_algebra();
|
|
void test_univariate_linear_regression();
|
|
|
|
void is_approx_equalsd(double a, double b, const String &str);
|
|
void is_approx_equals_dvec(const Vector<double> &a, const Vector<double> &b, const String &str);
|
|
void is_approx_equals_dmat(const Vector<Vector<double>> &a, const Vector<Vector<double>> &b, const String &str);
|
|
|
|
MLPPTests();
|
|
~MLPPTests();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
String _load_fires_and_crime_data_path;
|
|
};
|
|
|
|
#endif
|