Facebook
From Small Elephant, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 245
  1. C:\Users\Tomek\Anaconda3\python.exe C:/Users/Tomek/PycharmProjects/programminglanguagerecognition/TrainNetwork.py
  2. ExampleData/Cpp/connectedcomponents.cpp
  3. ExampleData/Cpp/half.cpp
  4. ExampleData/Cpp/ImfPizCompressor.cpp
  5. ExampleData/Cpp/ImfRleCompressor.cpp
  6. ExampleData/Cpp/ImfZipCompressor.cpp
  7. {'c++': [1, 0, 0], 'java': [0, 1, 0], 'python': [0, 0, 1]}
  8. iteration  0
  9. test accuracy  0.287356
  10. learn accuracy  0.325905
  11. iteration  100
  12. test accuracy  0.475096
  13. learn accuracy  0.449582
  14. iteration  200
  15. test accuracy  0.601533
  16. learn accuracy  0.576602
  17. iteration  300
  18. test accuracy  0.862069
  19. learn accuracy  0.884123
  20. iteration  400
  21. test accuracy  0.793103
  22. learn accuracy  0.784958
  23. iteration  500
  24. test accuracy  0.842912
  25. learn accuracy  0.849582
  26. iteration  600
  27. test accuracy  0.83908
  28. learn accuracy  0.844011
  29. iteration  700
  30. test accuracy  0.873563
  31. learn accuracy  0.877994
  32. iteration  800
  33. test accuracy  0.934866
  34. learn accuracy  0.959331
  35. iteration  900
  36. test accuracy  0.950192
  37. learn accuracy  0.95376
  38. iteration  1000
  39. test accuracy  0.877395
  40. learn accuracy  0.878552
  41. iteration  1100
  42. test accuracy  0.923372
  43. learn accuracy  0.947075
  44. iteration  1200
  45. test accuracy  0.896552
  46. learn accuracy  0.906407
  47. iteration  1300
  48. test accuracy  0.931035
  49. learn accuracy  0.954875
  50. iteration  1400
  51. test accuracy  0.942529
  52. learn accuracy  0.958217
  53. iteration  1500
  54. test accuracy  0.900383
  55. learn accuracy  0.909192
  56. iteration  1600
  57. test accuracy  0.94636
  58. learn accuracy  0.962674
  59. iteration  1700
  60. test accuracy  0.954023
  61. learn accuracy  0.964903
  62. iteration  1800
  63. test accuracy  0.942529
  64. learn accuracy  0.961003
  65. iteration  1900
  66. test accuracy  0.934866
  67. learn accuracy  0.942618
  68. iteration  2000
  69. test accuracy  0.94636
  70. learn accuracy  0.960446
  71. iteration  2100
  72. test accuracy  0.94636
  73. learn accuracy  0.963788
  74. iteration  2200
  75. test accuracy  0.950192
  76. learn accuracy  0.963788
  77. iteration  2300
  78. test accuracy  0.950192
  79. learn accuracy  0.964903
  80. iteration  2400
  81. test accuracy  0.950192
  82. learn accuracy  0.964345
  83. iteration  2500
  84. test accuracy  0.950192
  85. learn accuracy  0.953203
  86. iteration  2600
  87. test accuracy  0.954023
  88. learn accuracy  0.960446
  89. iteration  2700
  90. test accuracy  0.957854
  91. learn accuracy  0.966574
  92. iteration  2800
  93. test accuracy  0.950192
  94. learn accuracy  0.953203
  95. iteration  2900
  96. test accuracy  0.957854
  97. learn accuracy  0.966574
  98. iteration  3000
  99. test accuracy  0.950192
  100. learn accuracy  0.967131
  101. iteration  3100
  102. test accuracy  0.950192
  103. learn accuracy  0.969359
  104. iteration  3200
  105. test accuracy  0.950192
  106. learn accuracy  0.971031
  107. iteration  3300
  108. test accuracy  0.94636
  109. learn accuracy  0.952089
  110. iteration  3400
  111. test accuracy  0.961686
  112. learn accuracy  0.970474
  113. iteration  3500
  114. test accuracy  0.950192
  115. learn accuracy  0.969916
  116. iteration  3600
  117. test accuracy  0.954023
  118. learn accuracy  0.969916
  119. iteration  3700
  120. test accuracy  0.957854
  121. learn accuracy  0.969359
  122. iteration  3800
  123. test accuracy  0.957854
  124. learn accuracy  0.969916
  125. iteration  3900
  126. test accuracy  0.954023
  127. learn accuracy  0.967131
  128. iteration  4000
  129. test accuracy  0.950192
  130. learn accuracy  0.969359
  131. iteration  4100
  132. test accuracy  0.965517
  133. learn accuracy  0.971588
  134. iteration  4200
  135. test accuracy  0.965517
  136. learn accuracy  0.969916
  137. iteration  4300
  138. test accuracy  0.961686
  139. learn accuracy  0.971031
  140. iteration  4400
  141. test accuracy  0.950192
  142. learn accuracy  0.971031
  143. iteration  4500
  144. test accuracy  0.954023
  145. learn accuracy  0.966574
  146. iteration  4600
  147. test accuracy  0.954023
  148. learn accuracy  0.972145
  149. iteration  4700
  150. test accuracy  0.957854
  151. learn accuracy  0.969359
  152. iteration  4800
  153. test accuracy  0.950192
  154. learn accuracy  0.971031
  155. iteration  4900
  156. test accuracy  0.954023
  157. learn accuracy  0.971588
  158. Python accuracy:
  159. 1.0
  160. C++ accuracy:
  161. 0.924051
  162. Java accuracy:
  163. 0.946667
  164. {"language_dict": {"c++": [1, 0, 0], "java": [0, 1, 0], "python": [0, 0, 1]}, "keys": ["!", "\"", "#", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", "0", "1", "10", "100", "15", "16", "1e", "2", "20", "2000", "2008", "2009", "2015", "2016", "255", "3", "32F", "32FC1", "4", "5", "6", "64F", "7", "8", "8U", "8UC1", "9", ":", ";", "<", "=", ">", "?", "@", "A", "ADVISED", "AND", "ANY", "ARE", "ARISING", "AS", "ASL", "Agreement", "All", "An", "Apache", "Args", "ArrayList", "Assert", "Authors", "BASIS", "BE", "BEFORE", "BUSINESS", "BUT", "BY", "By", "C", "CAUSED", "CONDITIONS", "CONSEQUENTIAL", "CONTRACT", "CONTRIBUTORS", "COPYING", "COPYRIGHT", "CV", "Class", "Commercial", "Computer", "Copyright", "Corporation", "Create", "DAMAGE", "DAMAGES", "DATA", "DIRECT", "DISCLAIMED", "DOWNLOADING", "DSL", "Data", "EVEN", "EVENT", "EXEMPLARY", "EXPRESS", "Eder", "Error", "Exception", "FITNESS", "FOR", "False", "Field", "For", "GOODS", "Garage", "Geekery", "Generated", "GmbH", "HAVE", "HOLDERS", "HOWEVER", "IF", "IMPLIED", "IMPORTANT", "IN", "INCIDENTAL", "INCLUDING", "INDIRECT", "INSTALLING", "INTERRUPTION", "IS", "If", "In", "Inc", "InputArray", "Integer", "Intel", "It", "KIND", "LIABILITY", "LIABLE", "LICENSE", "LIMITED", "LOSS", "Library", "License", "Licensed", "List", "Lukas", "M", "MAT", "MAX", "MERCHANTABILITY", "Mat", "NEGLIGENCE", "NO", "NOT", "NULL", "Neither", "None", "Note", "OF", "ON", "OR", "OTHERWISE", "OUT", "OWNER", "Object", "Open", "OpenCV", "Other", "OutputArray", "Override", "PARTICULAR", "POSSIBILITY", "PROCUREMENT", "PROFITS", "PROVIDED", "PURPOSE", "Point", "Ptr", "READ", "Raises", "Record", "Redistribution", "Redistributions", "Reserved", "Returns", "Rights", "SERVICES", "SHALL", "SOFTWARE", "SPECIAL", "SQL", "STRICT", "SUBSTITUTE", "SUCH", "Scalar", "See", "Size", "Source", "String", "SuppressWarnings", "T", "TEST", "THE", "THEORY", "THIS", "TO", "TODO", "TORT", "Tensor", "TensorFlow", "TestCase", "Tests", "The", "These", "Third", "This", "True", "TypeError", "USE", "USING", "Unless", "ValueError", "Variable", "Version", "Vision", "WARRANTIES", "WAY", "WHETHER", "WITHOUT", "We", "Willow", "You", "[", "\\", "]", "_", "`", "a", "above", "absolute", "add", "advised", "after", "agree", "agreed", "all", "also", "an", "and", "annotation", "any", "apache", "append", "applicable", "are", "args", "argument", "arguments", "arising", "array", "as", "assert", "assertAllClose", "assertEqual", "assertTrue", "at", "author", "available", "b", "back", "batch", "be", "because", "begin", "binary", "bool", "boolean", "break", "buf", "business", "but", "by", "byte", "c", "call", "can", "case", "cast", "catch", "caused", "channels", "char", "check", "class", "classes", "clear", "code", "cols", "com", "commercial", "compliance", "compute", "conditions", "consequential", "const", "constant", "continue", "contract", "contrib", "contributors", "control", "convert", "convertTo", "copy", "copyTo", "copying", "copyright", "copyrights", "count", "create", "cv", "cvtest", "d", "damage", "damages", "data", "database", "datageekery", "def", "default", "define", "defined", "depth", "derived", "dict", "different", "direct", "disable", "disclaimed", "disclaimer", "distributed", "distribution", "division", "do", "documentation", "does", "double", "download", "downloading", "dst", "dtype", "dtypes", "e", "each", "either", "elements", "elif", "else", "empty", "end", "endif", "endorse", "equal", "equals", "error", "eval", "even", "event", "example", "except", "exemplary", "expected", "express", "extends", "f", "false", "field", "fields", "file", "final", "find", "first", "fitness", "float", "float32", "following", "for", "form", "format", "forms", "framework", "from", "function", "future", "g", "generated", "get", "getMat", "given", "global", "goods", "google", "governing", "graph", "h", "has", "have", "height", "holders", "however", "hpp", "http", "https", "i", "idx", "if", "ifdef", "image", "img", "impl", "implementation", "implements", "implied", "import", "in", "incidental", "include", "including", "index", "indices", "indirect", "information", "init", "initializer", "input", "inputs", "install", "installing", "instance", "instanceof", "int", "int32", "int64", "integrations", "interface", "interruption", "into", "io", "is", "isinstance", "it", "its", "j", "jOOQ", "java", "javax", "join", "jooq", "k", "key", "keys", "lambda", "lang", "language", "last", "law", "len", "length", "liability", "liable", "license", "licenses", "like", "limitations", "limited", "link", "list", "log", "logging", "long", "loss", "m", "main", "maintenance", "make", "mask", "match", "materials", "math", "max", "may", "mean", "merchantability", "met", "method", "min", "model", "modification", "more", "must", "n", "name", "names", "namespace", "need", "negligence", "new", "no", "non", "nor", "not", "notice", "np", "null", "num", "number", "numpy", "object", "obtain", "of", "offer", "on", "one", "ones", "only", "op", "opencv2", "operation", "operator", "ops", "or", "order", "org", "os", "other", "otherwise", "out", "output", "outputs", "owners", "p", "package", "param", "particular", "party", "pass", "path", "permission", "permissions", "permitted", "placeholder", "please", "possibility", "precomp", "print", "prior", "private", "procurement", "products", "profits", "promote", "property", "protected", "provided", "ptr", "public", "purpose", "push", "pylint", "python", "r", "raise", "random", "range", "rawtypes", "re", "read", "records", "reduce", "release", "replace", "reproduce", "required", "reserved", "reshape", "resize", "respective", "result", "retain", "return", "returns", "rights", "row", "rows", "run", "s", "same", "scalar", "scale", "scope", "see", "seed", "self", "serialVersionUID", "services", "sess", "session", "set", "shall", "shape", "shapes", "should", "single", "six", "size", "sizeof", "so", "software", "some", "source", "special", "specific", "specified", "sql", "sqrt", "src", "start", "static", "std", "step", "str", "strict", "string", "struct", "substitute", "such", "sum", "super", "support", "switch", "t", "table", "tables", "template", "tensor", "tensorflow", "tensors", "test", "tf", "than", "that", "the", "their", "then", "theory", "there", "this", "throw", "throws", "time", "to", "toString", "tools", "tort", "total", "train", "training", "true", "try", "tuple", "two", "type", "typedef", "types", "uchar", "unchecked", "under", "unsigned", "up", "update", "use", "used", "using", "util", "v", "val", "value", "values", "variable", "variables", "vector", "virtual", "visit", "void", "warranties", "was", "way", "we", "when", "where", "whether", "which", "while", "width", "will", "with", "without", "work", "writing", "written", "www", "x", "y", "you", "zero", "zeros", "zip", "{", "|", "}", "~"]}
  165.  
  166. Process finished with exit code 0
  167.