DiSMEC++
pybind.cpp File Reference
#include <utility>
#include "python/binding.h"
#include "pybind11/pybind11.h"
#include "pybind11/eigen.h"
#include "pybind11/stl.h"
#include "data/data.h"
#include "model/model.h"
#include "io/xmc.h"
#include "io/model-io.h"
#include "io/prediction.h"
#include "training/weighting.h"
#include "training/training.h"
#include "training/initializer.h"
#include "parallel/runner.h"

Go to the source code of this file.

Macros

#define PY_PROPERTY(type, function)   def_property(#function, [](const type& pds){ return pds->function(); } , nullptr)
 

Typedefs

using PyTrainSpec = PyWrapper< TrainingSpec >
 
using PySaver = PyWrapper< io::PartialModelSaver >
 

Functions

void register_dataset (pybind11::module_ &m)
 
void register_training (pybind11::module_ &m)
 
 PYBIND11_MODULE (pydismec, m)
 

Macro Definition Documentation

◆ PY_PROPERTY

#define PY_PROPERTY (   type,
  function 
)    def_property(#function, [](const type& pds){ return pds->function(); } , nullptr)

Definition at line 31 of file pybind.cpp.

Typedef Documentation

◆ PySaver

Definition at line 29 of file pybind.cpp.

◆ PyTrainSpec

Definition at line 28 of file pybind.cpp.

Function Documentation

◆ PYBIND11_MODULE()

◆ register_dataset()

◆ register_training()