Ignore:
Timestamp:
09/09/13 17:22:02 (8 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Removed 'Earth' code from Orange (moved to 'orangecontrib.earth' package).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_learner.cpp

    r11610 r11692  
    16481648} 
    16491649 
    1650  
    1651 /************ EARTH (MARS) ******/ 
    1652 #include "earth.hpp" 
    1653  
    1654 C_CALL(EarthLearner, Learner, "([examples], [weight=] -/-> Classifier)") 
    1655 C_NAMED(EarthClassifier, ClassifierFD, " ") 
    1656  
    1657 PyObject *EarthClassifier_formatEarth(PyObject *self, PyObject *args) PYARGS(METH_VARARGS, "() -> None") 
    1658 { 
    1659     PyTRY 
    1660     CAST_TO(TEarthClassifier, classifier); 
    1661     classifier->format_earth(); 
    1662     RETURN_NONE; 
    1663     PyCATCH 
    1664 } 
    1665  
    1666 PyObject *EarthClassifier__reduce__(PyObject *self) PYARGS(METH_VARARGS, "") 
    1667 { 
    1668     PyTRY 
    1669     CAST_TO(TEarthClassifier, classifier); 
    1670     TCharBuffer buffer(1024); 
    1671     classifier->save_model(buffer); 
    1672     return Py_BuildValue("O(s#)N", getExportedFunction("__pickleLoaderEarthClassifier"), 
    1673                                     buffer.buf, buffer.length(), 
    1674                                     packOrangeDictionary(self)); 
    1675     PyCATCH 
    1676 } 
    1677  
    1678 PyObject *__pickleLoaderEarthClassifier(PyObject *self, PyObject *args) PYARGS(METH_VARARGS, "(buffer)") 
    1679 { 
    1680     PyTRY 
    1681     char * cbuf = NULL; 
    1682     int buffer_size = 0; 
    1683     if (!PyArg_ParseTuple(args, "s#:__pickleLoaderEarthClassifier", &cbuf, &buffer_size)) 
    1684         return NULL; 
    1685     TCharBuffer buffer(cbuf); 
    1686     PEarthClassifier classifier = mlnew TEarthClassifier(); 
    1687     classifier->load_model(buffer); 
    1688     return WrapOrange(classifier); 
    1689     PyCATCH 
    1690 } 
    1691  
    1692  
    16931650     
    16941651/************* BAYES ************/ 
Note: See TracChangeset for help on using the changeset viewer.