本文整理汇总了Python中General.experimentVariables方法的典型用法代码示例。如果您正苦于以下问题:Python General.experimentVariables方法的具体用法?Python General.experimentVariables怎么用?Python General.experimentVariables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类General
的用法示例。
在下文中一共展示了General.experimentVariables方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import General [as 别名]
# 或者: from General import experimentVariables [as 别名]
from scipy.stats import spearmanr
import numpy as np
import dataML_Prepro as dmlPre
from sklearn.datasets import load_boston, load_iris, load_diabetes, load_digits, load_linnerud
from sklearn.naive_bayes import GaussianNB
from sklearn import linear_model
from sklearn.metrics import f1_score
import funcs as fun
from sklearn.metrics import confusion_matrix
from sklearn.metrics import classification_report
import General as gF
#Datasets
expe=gF.experimentVariables('unlabeledModelS')
exec(expe['variables'])
data=expe['data']
labels=expe['labels']
cont=0
ranks=[]
f1_score_mv_predval_agmnt=[]
oldAgmntLevels=[]
bestF1s=[]
while cont<expe['numTests']:
#Divide the data in training, testing and validation
splitData=dmlPre.dataSplitBalancedClass(data, labels)
trainData=splitData['trainData']