def _updatestring(self): """Update info """ try: self.info = _info(np.ravel(self._ry), self._cv, self._clf) except: pass
def change_clf(self, clf="lda", **clfArg): """Change the classifier """ if isinstance(clf, (int, str)): clf = defClf(self._ry, clf=clf, **clfArg) self._clf = clf tempinfo = _info(np.ravel(self._ry), self._cv, self._clf)._clfinfo(self._cv, self._clf)
def change_clf(self, clf='lda', **clfArg): """Change the classifier """ if isinstance(clf, (int, str)): clf = defClf(self._ry, clf=clf, **clfArg) self._clf = clf tempinfo = _info(np.ravel(self._ry), self._cv, self._clf)._clfinfo(self._cv, self._clf)