Skip to content

Commit

Permalink
use dynamic object array to store results
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf authored and vigsterkr committed Mar 10, 2016
1 parent 9f4a179 commit 74fe9ce
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions examples/meta/src/classifier/knn.sg
Expand Up @@ -61,16 +61,8 @@ RealMatrix mat = feats_train.get_feature_matrix()

#119 is char for 'w'
SerializableAsciiFile f_results("knn_results.txt", 119)
SerializableAsciiFile f_results2("knn_results2.txt", 119)

SerializableAsciiFile f_names("knn_names.txt", 119)

List results()
DynamicObjectArray results2()
DynamicObjectArray results()
results.append_element_wrapped(output)
results.append_element_wrapped(mat)
results2.append_element_wrapped(output)
results2.append_element_wrapped(mat)
results.save_serializable(f_results)
results2.save_serializable(f_results2)

0 comments on commit 74fe9ce

Please sign in to comment.