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>(),
16 const float validation_size=0.0,
17 const float batch_size=1.0){
19 X, feature_names, c, validation_size, batch_size);
22 py::arg(
"feature_names") = vector<string>(),
24 py::arg(
"validation_size") = 0.0,
25 py::arg(
"batch_size") = 1.0
28 .def(py::init([](
const Ref<const ArrayXXf>& X,
29 const Ref<const ArrayXf>& y,
30 const vector<string>& feature_names=vector<string>(),
32 const float validation_size=0.0,
33 const float batch_size=1.0){
35 X, y, feature_names, {}, c, validation_size, batch_size);
39 py::arg(
"feature_names") = vector<string>(),
41 py::arg(
"validation_size") = 0.0,
42 py::arg(
"batch_size") = 1.0
48 .def(py::init([](
const Ref<const ArrayXXf>& X,
50 const vector<string>& feature_names,
55 py::arg(
"ref_dataset"),
56 py::arg(
"feature_names"),
74 m.def(
"read_csv", &
br::Data::read_csv, py::arg(
"path"), py::arg(
"target"), py::arg(
"sep")=
',');