11 py::class_<br::Data::Dataset>(m,
"Dataset")
13 .def(py::init([](
const Ref<const ArrayXXf>& X,
14 const vector<string>& feature_names=vector<string>(),
15 const vector<string>& feature_types=vector<string>(),
17 const float validation_size=0.0,
18 const float batch_size=1.0,
19 const bool shuffle_split=
false){
21 X, feature_names, feature_types, c,
22 validation_size, batch_size, shuffle_split);
25 py::arg(
"feature_names") = vector<string>(),
26 py::arg(
"feature_types") = vector<string>(),
28 py::arg(
"validation_size") = 0.0,
29 py::arg(
"batch_size") = 1.0,
30 py::arg(
"shuffle_split") = false
33 .def(py::init([](
const Ref<const ArrayXXf>& X,
34 const Ref<const ArrayXf>& y,
35 const vector<string>& feature_names=vector<string>(),
36 const vector<string>& feature_types=vector<string>(),
38 const float validation_size=0.0,
39 const float batch_size=1.0,
40 const bool shuffle_split=
false){
42 X, y, feature_names, {}, feature_types,
43 c, validation_size, batch_size, shuffle_split);
47 py::arg(
"feature_names") = vector<string>(),
48 py::arg(
"feature_types") = vector<string>(),
50 py::arg(
"validation_size") = 0.0,
51 py::arg(
"batch_size") = 1.0,
52 py::arg(
"shuffle_split") = false
58 .def(py::init([](
const Ref<const ArrayXXf>& X,
60 const vector<string>& feature_names){
64 py::arg(
"ref_dataset"),
65 py::arg(
"feature_names")
82 m.def(
"read_csv", &
br::Data::read_csv, py::arg(
"path"), py::arg(
"target"), py::arg(
"sep")=
',');