Permalink
Browse files

Scripts

  • Loading branch information...
1 parent 759d536 commit 8a88840d8fee09eb080472ba1ce31cbc96eb89c6 @merimak committed Mar 25, 2016
Showing with 16,967 additions and 0 deletions.
  1. +351 −0 Results/Performance results/Device_classification_DecisionTrees.txt
  2. +1,076 −0 Results/Performance results/Device_classification_LogisticRegression.txt
  3. +5,318 −0 Results/Performance results/Device_classification_NeuralNetworks.txt
  4. +66 −0 Results/Performance results/Device_classification_kNN.txt
  5. +73 −0 Results/Performance results/Device_type_classification_DecisionTrees.txt
  6. +1,056 −0 Results/Performance results/Device_type_classification_LogisticRegression.txt
  7. +5,138 −0 Results/Performance results/Device_type_classification_NeuralNetworks.txt
  8. +3,110 −0 Results/Performance results/Device_type_classification_NeuralNetworks_tuned.txt
  9. +46 −0 Results/Performance results/Device_type_classification_kNN.txt
  10. +2 −0 Results/Performance results/README
  11. +1 −0 Results/R squared results/README
  12. +4 −0 Results/R squared results/Results in KDP step 2/*README
  13. +12 −0 Results/R squared results/Results in KDP step 2/ICMPCase1_Device_classification_50000_bins.csv
  14. +4 −0 Results/R squared results/Results in KDP step 2/ICMPCase1_Device_type_classification_50000_bins.csv
  15. +12 −0 Results/R squared results/Results in KDP step 2/ICMPCase2_Device_classification_50000_bins.csv
  16. +4 −0 Results/R squared results/Results in KDP step 2/ICMPCase2_Device_type_classification_50000_bins.csv
  17. +14 −0 Results/R squared results/Results in KDP step 2/SCP_Device_classification_50000_bins.csv
  18. +4 −0 Results/R squared results/Results in KDP step 2/SCP_Device_type_classification_50000_bins.csv
  19. +14 −0 Results/R squared results/Results in KDP step 2/TCP_Device_classification_50000_bins.csv
  20. +4 −0 Results/R squared results/Results in KDP step 2/TCP_Device_type_classification_50000_bins.csv
  21. +14 −0 Results/R squared results/Results in KDP step 2/UDPCase1_Device_classification_50000_bins.csv
  22. +4 −0 Results/R squared results/Results in KDP step 2/UDPCase1_Device_type_classification_50000_bins.csv
  23. +14 −0 Results/R squared results/Results in KDP step 2/UDPCase2_Device_classification_50000_bins.csv
  24. +4 −0 Results/R squared results/Results in KDP step 2/UDPCase2_Device_type_classification_50000_bins.csv
  25. +14 −0 Results/R squared results/Results in KDP step 2/UDPCase3_Device_classification_50000_bins.csv
  26. +4 −0 Results/R squared results/Results in KDP step 2/UDPCase3_Device_type_classification_50000_bins.csv
  27. +5 −0 Results/R squared results/Results in KDP step 3/*README
  28. +12 −0 Results/R squared results/Results in KDP step 3/ICMPCase1_Device_classification_500_bins.csv
  29. +4 −0 Results/R squared results/Results in KDP step 3/ICMPCase1_Device_type_classification_500_bins.csv
  30. +12 −0 Results/R squared results/Results in KDP step 3/ICMPCase2_Device_classification_500_bins.csv
  31. +4 −0 Results/R squared results/Results in KDP step 3/ICMPCase2_Device_type_classification_500_bins.csv
  32. +14 −0 Results/R squared results/Results in KDP step 3/SCP_Device_classification_500_bins.csv
  33. +4 −0 Results/R squared results/Results in KDP step 3/SCP_Device_type_classification_500_bins.csv
  34. +14 −0 Results/R squared results/Results in KDP step 3/TCP_Device_classification_500_bins.csv
  35. +4 −0 Results/R squared results/Results in KDP step 3/TCP_Device_type_classification_500_bins.csv
  36. +14 −0 Results/R squared results/Results in KDP step 3/UDPCase1_Device_classification_500_bins.csv
  37. +4 −0 Results/R squared results/Results in KDP step 3/UDPCase1_Device_type_classification_500_bins.csv
  38. +14 −0 Results/R squared results/Results in KDP step 3/UDPCase2_Device_classification_500_bins.csv
  39. +4 −0 Results/R squared results/Results in KDP step 3/UDPCase2_Device_type_classification_500_bins.csv
  40. +14 −0 Results/R squared results/Results in KDP step 3/UDPCase3_Device_classification_500_bins.csv
  41. +4 −0 Results/R squared results/Results in KDP step 3/UDPCase3_Device_type_classification_500_bins.csv
  42. +48 −0 Scripts/KD step 2 and 3/ConcatType.m
  43. +70 −0 Scripts/KD step 2 and 3/CreateHist.m
  44. +17 −0 Scripts/KD step 2 and 3/DataCleaning.m
  45. +34 −0 Scripts/KD step 2 and 3/FiveNumSummary.m
  46. +36 −0 Scripts/KD step 2 and 3/LoadDataset.m
  47. +33 −0 Scripts/KD step 2 and 3/README.rst
  48. +26 −0 Scripts/KD step 2 and 3/RSquared.m
  49. +20 −0 Scripts/KD step 2 and 3/scaleHistograms.m
  50. +55 −0 Scripts/KD step 4/Classification.m
  51. +39 −0 Scripts/KD step 4/Dataset_DevType_Classification.py
  52. +60 −0 Scripts/KD step 4/Dataset_Dev_Classification.py
  53. +38 −0 Scripts/KD step 4/README.rst
  54. +1 −0 Scripts/README

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,66 @@
+=== Run information ===
+
+Scheme:weka.classifiers.lazy.IBk -K 1 -W 0 -A "weka.core.neighboursearch.LinearNNSearch -A \"weka.core.EuclideanDistance -R first-last\""
+Relation: Dataset0_1_500bins_devices
+Instances: 4926
+Attributes: 501
+[list of attributes omitted]
+Test mode:10-fold cross-validation
+
+=== Classifier model (full training set) ===
+
+IB1 instance-based classifier
+using 1 nearest neighbour(s) for classification
+
+
+Time taken to build model: 0.01 seconds
+
+=== Stratified cross-validation ===
+=== Summary ===
+
+Correctly Classified Instances 4033 81.8717 %
+Incorrectly Classified Instances 893 18.1283 %
+Kappa statistic 0.7973
+Mean absolute error 0.0262
+Root mean squared error 0.1607
+Relative absolute error 20.5066 %
+Root relative squared error 63.5343 %
+Total Number of Instances 4926
+
+=== Detailed Accuracy By Class ===
+
+ TP Rate FP Rate Precision Recall F-Measure ROC Area Class
+ 0.976 0.001 0.982 0.976 0.979 0.99 dell_a
+ 0.717 0.026 0.615 0.717 0.662 0.84 dell_b
+ 0.844 0.021 0.691 0.844 0.76 0.916 dell_c
+ 0.915 0.013 0.892 0.915 0.903 0.954 dell_d
+ 0.943 0.008 0.941 0.943 0.942 0.966 dell_e
+ 0.345 0.002 0.866 0.345 0.494 0.654 ipad_a
+ 0.573 0.008 0.678 0.573 0.621 0.794 ipad_b
+ 1 0.001 0.99 1 0.995 1 ipad_c
+ 0.963 0 1 0.963 0.981 0.982 iphone_a
+ 0.988 0 0.992 0.988 0.99 0.994 iphone_b
+ 1 0 1 1 1 1 iphone_c
+ 0.977 0 1 0.977 0.989 0.993 iphone_d
+ 0.644 0.057 0.697 0.644 0.67 0.791 nokia_a
+ 0.746 0.072 0.677 0.746 0.71 0.833 nokia_b
+Weighted Avg. 0.819 0.027 0.824 0.819 0.816 0.895
+
+=== Confusion Matrix ===
+
+ a b c d e f g h i j k l m n <-- classified as
+ 164 3 0 0 0 1 0 0 0 0 0 0 0 0 | a = dell_a
+ 0 190 61 7 0 0 1 0 0 0 0 0 5 1 | b = dell_b
+ 0 36 217 3 0 0 0 0 0 0 0 0 0 1 | c = dell_c
+ 0 3 1 472 34 0 0 0 0 0 0 0 4 2 | d = dell_d
+ 0 0 2 31 576 0 0 0 0 0 0 0 2 0 | e = dell_e
+ 0 44 18 5 0 58 37 0 0 0 0 0 4 2 | f = ipad_a
+ 0 27 12 1 1 7 82 0 0 0 0 0 8 5 | g = ipad_b
+ 0 0 0 0 0 0 0 299 0 0 0 0 0 0 | h = ipad_c
+ 3 3 2 2 0 1 0 0 342 0 0 0 2 0 | i = iphone_a
+ 0 0 0 0 0 0 0 3 0 257 0 0 0 0 | j = iphone_b
+ 0 0 0 0 0 0 0 0 0 0 137 0 0 0 | k = iphone_c
+ 0 0 0 0 0 0 0 0 0 2 0 86 0 0 | l = iphone_d
+ 0 3 0 7 1 0 1 0 0 0 0 0 536 284 | m = nokia_a
+ 0 0 1 1 0 0 0 0 0 0 0 0 208 617 | n = nokia_b
+
@@ -0,0 +1,73 @@
+=== Run information ===
+
+Scheme:weka.classifiers.trees.J48 -C 0.25 -M 2
+Relation: TrainingSet_final
+Instances: 4933
+Attributes: 501
+[list of attributes omitted]
+Test mode:10-fold cross-validation
+
+=== Classifier model (full training set) ===
+
+J48 pruned tree
+------------------
+
+B6 <= 460
+| B10 <= 78
+| | B7 <= 199: dell (1820.0)
+| | B7 > 199
+| | | B33 <= 2
+| | | | B46 <= 1: nokia (2.0)
+| | | | B46 > 1: ipad (4.0)
+| | | B33 > 2: ipad (156.0)
+| B10 > 78
+| | B7 <= 117
+| | | B16 <= 234: iphone (598.0)
+| | | B16 > 234
+| | | | B25 <= 23: ipad (2.0)
+| | | | B25 > 23: iphone (15.0)
+| | B7 > 117
+| | | B34 <= 20
+| | | | B2 <= 211: ipad (451.0/3.0)
+| | | | B2 > 211: nokia (18.0)
+| | | B34 > 20: iphone (83.0)
+B6 > 460
+| B21 <= 12: nokia (1641.0/1.0)
+| B21 > 12: iphone (143.0)
+
+Number of Leaves : 12
+
+Size of the tree : 23
+
+
+Time taken to build model: 1.74 seconds
+
+=== Stratified cross-validation ===
+=== Summary ===
+
+Correctly Classified Instances 4919 99.7162 %
+Incorrectly Classified Instances 14 0.2838 %
+Kappa statistic 0.996
+Mean absolute error 0.0018
+Root mean squared error 0.0376
+Relative absolute error 0.5026 %
+Root relative squared error 8.9494 %
+Total Number of Instances 4933
+
+=== Detailed Accuracy By Class ===
+
+ TP Rate FP Rate Precision Recall F-Measure ROC Area Class
+ 1 0 1 1 1 1 dell
+ 0.992 0.001 0.99 0.992 0.991 0.997 ipad
+ 0.993 0.001 0.995 0.993 0.994 0.998 iphone
+ 0.998 0.001 0.998 0.998 0.998 0.999 nokia
+Weighted Avg. 0.997 0.001 0.997 0.997 0.997 0.999
+
+=== Confusion Matrix ===
+
+ a b c d <-- classified as
+ 1820 0 0 0 | a = dell
+ 0 606 3 2 | b = ipad
+ 0 4 836 2 | c = iphone
+ 0 2 1 1657 | d = nokia
+
Oops, something went wrong.

0 comments on commit 8a88840

Please sign in to comment.