File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 4141
4242 wine_network : Network = Network ([13 , 7 , 3 ], 0.9 )
4343
44- def wine_interpret_output (output : List [float ]) -> str :
44+ def wine_interpret_output (output : List [float ]) -> int :
4545 if max (output ) == output [0 ]:
4646 return 1
4747 elif max (output ) == output [1 ]:
@@ -57,7 +57,7 @@ def wine_interpret_output(output: List[float]) -> str:
5757
5858 # test over the last 28 of the wines in the data set
5959 wine_testers : List [List [float ]] = wine_parameters [150 :178 ]
60- wine_testers_corrects : List [str ] = wine_species [150 :178 ]
60+ wine_testers_corrects : List [int ] = wine_species [150 :178 ]
6161 wine_results = wine_network .validate (wine_testers , wine_testers_corrects , wine_interpret_output )
6262 print (f"{ wine_results [0 ]} correct of { wine_results [1 ]} = { wine_results [2 ] * 100 } %" )
6363
You can’t perform that action at this time.
0 commit comments