本文整理汇总了Python中parameters.Parameters.generateNextCombination方法的典型用法代码示例。如果您正苦于以下问题:Python Parameters.generateNextCombination方法的具体用法?Python Parameters.generateNextCombination怎么用?Python Parameters.generateNextCombination使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类parameters.Parameters
的用法示例。
在下文中一共展示了Parameters.generateNextCombination方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: len
# 需要导入模块: from parameters import Parameters [as 别名]
# 或者: from parameters.Parameters import generateNextCombination [as 别名]
print "%-5s" % testingTags[i], testResults[i]
combinations.append(parameters.getAllValues()[:]) # pass list by value
results.append([accuracy, numCycles])
print
print "Parameter Combination: ", parameters.getAllValues()
print "Accuracy: %.1f" % accuracy, "%"
print "Number of training cycles: ", numCycles
print
print "Combinations completed: ",
print len(combinations), "/", parameters.combinations
print
# Try next parameter combination
parameters.generateNextCombination()
print "The maximum number of training cycles is set to:", maxTrainingCycles
print
print "Summary of Results"
print
headerList = parameters.getAllNames()
headerList.append("% Accuracy")
headerList.append("Training Cycles")
headerString = ", ".join(headerList)
print headerString
for i in range(len(combinations)):
valueString = str(combinations[i])[1:-1]
valueString += ", %.2f" % results[i][0]
valueString += ", %d" % results[i][1]