def plotPredKitIDCrossValidation2(dataframe, clf): Z, w = prepareTraining2(dataframe) y_pred = cross_val_predict(clf, Z, w, cv=5) dataframe.loc[:, 'VAR_CLASS_PRED'] = y_pred dataframe = fromSecondToDate(dataframe) plotUsageAndNumcliAndVarClassByTS(dataframe, True)
def plotKitID(dataframe, clf): plotUsageAndNumcliAndVarClassByTS(dataframe, False)
def plotPredKitID(dataframe, clf): Z, w = prepareTraining2(dataframe) y_pred = clf.predict(Z) dataframe.loc[:, 'VAR_CLASS_PRED'] = y_pred dataframe = fromSecondToDate(dataframe) plotUsageAndNumcliAndVarClassByTS(dataframe, True)