- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to run SVM on a dataset using DAAL. I have split the data into train/test and then when I apply HomogenNumeric() on it, I get the following error. Need some help solving this
from sklearn.model_selection import StratifiedShuffleSplit sss = StratifiedShuffleSplit(n_splits=1, test_size=0.3, random_state=1) sss.get_n_splits(X_vitals, y_vitals) for train_index, test_index in sss.split(X_vitals, y_vitals): print("TRAIN:", train_index, "TEST:", test_index) X_train, X_test = X_vitals.iloc[train_index], X_vitals.iloc[test_index] y_train, y_test = y_vitals.iloc[train_index], y_vitals.iloc[test_index]
HomogenNumericTable(X_train)
The following is the error:
--------------------------------------------------------------------------- NotImplementedError Traceback (most recent call last) <ipython-input-218-f4f9b7de9bcf> in <module>() ----> 1 HomogenNumericTable(X_train) /home/shayantan/miniconda3/envs/intelpython/lib/python3.5/site-packages/daal/data_management/__init__.py in __new__(cls, *args, **kwargs) 4407 *args, **kwargs): 4408 if 'ntype' not in kwargs or kwargs['ntype'] == float64: -> 4409 return HomogenNumericTable_Float64(*args) 4410 if 'ntype' in kwargs and kwargs['ntype'] == float32: 4411 return HomogenNumericTable_Float32(*args) /home/shayantan/miniconda3/envs/intelpython/lib/python3.5/site-packages/daal/data_management/__init__.py in __init__(self, *args) 2698 2699 -> 2700 this = _data_management.new_HomogenNumericTable_Float64(*args) 2701 try: 2702 self.this.append(this) NotImplementedError: Wrong number or type of arguments for overloaded function 'new_HomogenNumericTable_Float64'. Possible C/C++ prototypes are: daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::NumericTableDictionary *) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::services::SharedPtr< daal::data_management::interface1::NumericTableDictionary >) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(double *const,size_t,size_t) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable() daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual,double *const,size_t,size_t) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual,double *const,size_t) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual,double *const) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(double *const,size_t,size_t,double const &) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual,double *const,size_t,size_t,double const &) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(size_t,size_t,daal::data_management::interface1::NumericTableIface::AllocationFlag) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual,size_t,size_t,daal::data_management::interface1::NumericTableIface::AllocationFlag) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(size_t,size_t,daal::data_management::interface1::NumericTable::AllocationFlag,double const &) daal::data_management::interface1::HomogenNumericTable< double >::HomogenNumericTable(daal::data_management::interface1::DictionaryIface::FeaturesEqual,size_t,size_t,daal::data_management::interface1::NumericTable::AllocationFlag,double const &)
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page