-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregression.h
More file actions
25 lines (24 loc) · 776 Bytes
/
Copy pathregression.h
File metadata and controls
25 lines (24 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <Eigen\Eigen>
#include "mlmodel.h"
class Regression : public MLModel<Eigen::MatrixXd>
{
/******************construct******************/
public:
Regression();
~Regression();
/******************communication******************/
virtual void sendMsg(char * msg) override;
/******************data******************/
virtual bool isDataMatch (Eigen::MatrixXd &xData, Eigen::MatrixXd &yData) override;
/******************optimize parameters******************/
protected:
Eigen::MatrixXd Weight;
Eigen::MatrixXd Bias;
/******************learning method******************/
public:
virtual bool learn() override;
/******************recognition method******************/
public:
virtual Eigen::MatrixXd recognize(Eigen::MatrixXd input) override;
};