-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelis.h
More file actions
22 lines (17 loc) · 837 Bytes
/
elis.h
File metadata and controls
22 lines (17 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// Created by house on 18-6-4.
//
//#pragma once
#ifndef ELIS2_0_ELIS_H
#define ELIS2_0_ELIS_H
//#include <Eigen/Dense>
#include <iostream>
#include "types.h"
#include "../../tool software/eigen/eigen/Eigen/Dense"
void ConvertX(const mydata &x, Eigen::MatrixXd &f, Eigen::MatrixXd &d);
void GradientDescent(const Eigen::MatrixXd &ts, const Eigen::MatrixXd &y, const parameters &p, const size_t all_data, ELIS &elis,double &error);
//void GradientDescent(const Eigen::MatrixXd &ts, const Eigen::MatrixXd &y, const parameters &p, const size_t all_data, ELIS &elis, int epoch, int maxepoch, Eigen::MatrixXd m_t, Eigen::MatrixXd v_t);
void Train(const mydata &x, parameters &p, ELIS &elis);
int Test(const mydata &x, const ELIS &elis);
void Train(const mydata &x, const mydata &f, parameters &p, ELIS &elis);
#endif //ELIS2_0_ELIS_H