Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions python/pysol.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ cdef extern from "sol/c_api.h":
int sol_convert_data(const char* src_path, const char* src_type, const char* dst_path, const char* dst_type, bint binarize, float binarize_thresh)
int sol_shuffle_data(const char* src_path, const char* src_type, const char* dst_path, const char* dst_type)
int sol_split_data(const char* src_path, const char* src_type, int fold, const char* output_prefix, const char* dst_type, bint shuffle)

cdef class SOL:
cdef void* _c_model
cdef void* _c_data_iter
cdef const char* algo
cdef int class_num
cdef bint verbose
5 changes: 0 additions & 5 deletions python/pysol.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ cdef void inspect_iteration(void* user_context,
handler(data_num, iter_num, update_num, err_rate)

cdef class SOL:
cdef void* _c_model
cdef void* _c_data_iter
cdef const char* algo
cdef int class_num
cdef bint verbose

def __cinit__(self, const char* algo = NULL, int class_num = -1, int
batch_size=256, int buf_size = 2, verbose=False, **params):
Expand Down