{"action":"closed","issue":{"url":"https://api.github.com/repos/CellProfiler/CellProfiler-Analyst/issues/147","labels_url":"https://api.github.com/repos/CellProfiler/CellProfiler-Analyst/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/CellProfiler/CellProfiler-Analyst/issues/147/comments","events_url":"https://api.github.com/repos/CellProfiler/CellProfiler-Analyst/issues/147/events","html_url":"https://github.com/CellProfiler/CellProfiler-Analyst/issues/147","id":128571636,"number":147,"title":"ValueError on classifying image","user":{"login":"braymp","id":1186440,"avatar_url":"https://avatars.githubusercontent.com/u/1186440?v=3","gravatar_id":"","url":"https://api.github.com/users/braymp","html_url":"https://github.com/braymp","followers_url":"https://api.github.com/users/braymp/followers","following_url":"https://api.github.com/users/braymp/following{/other_user}","gists_url":"https://api.github.com/users/braymp/gists{/gist_id}","starred_url":"https://api.github.com/users/braymp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braymp/subscriptions","organizations_url":"https://api.github.com/users/braymp/orgs","repos_url":"https://api.github.com/users/braymp/repos","events_url":"https://api.github.com/users/braymp/events{/privacy}","received_events_url":"https://api.github.com/users/braymp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CellProfiler/CellProfiler-Analyst/labels/Bug","name":"Bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-25T16:14:16Z","updated_at":"2016-01-26T20:42:30Z","closed_at":"2016-01-26T20:42:30Z","body":"Use the following SQLite db, props file and training set, and do the following:\r\n* Load training set\r\n* Train with RandomForest\r\n* Open an image (I was using image number 14 when it happened), and use Classify > Classify image.\r\n\r\nI then got the error below.\r\n```\r\nValueError: Input contains NaN, infinity or a value too large for dtype('float32').\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\Trunk\\cellProfiler-analyst\\cpa\\imageviewer.py\", line 504, in OnClassifyImage\r\n    classHits = classifier.ScoreImage(self.img_key)\r\n  File \"C:\\Trunk\\cellProfiler-analyst\\cpa\\classifier.py\", line 1493, in ScoreImage\r\n    classHits[bin.label] = self.algorithm.FilterObjectsFromClassN(clNum + 1, [imKey])\r\n  File \"C:\\Trunk\\cellProfiler-analyst\\cpa\\generalclassifier.py\", line 73, in FilterObjectsFromClassN\r\n    return multiclasssql.FilterObjectsFromClassN(obClass, self, obKeysToTry, uncertain)\r\n  File \"C:\\Trunk\\cellProfiler-analyst\\cpa\\multiclasssql.py\", line 132, in FilterObjectsFromClassN\r\n    predicted_classes = classifier.Predict(cell_data)\r\n  File \"C:\\Trunk\\cellProfiler-analyst\\cpa\\generalclassifier.py\", line 116, in Predict\r\n    predictions = self.classifier.predict(test_values)\r\n  File \"C:\\Python27\\lib\\site-packages\\sklearn\\ensemble\\forest.py\", line 498, in predict\r\n    proba = self.predict_proba(X)\r\n  File \"C:\\Python27\\lib\\site-packages\\sklearn\\ensemble\\forest.py\", line 537, in predict_proba\r\n    X = self._validate_X_predict(X)\r\n  File \"C:\\Python27\\lib\\site-packages\\sklearn\\ensemble\\forest.py\", line 319, in _validate_X_predict\r\n    return self.estimators_[0]._validate_X_predict(X, check_input=True)\r\n  File \"C:\\Python27\\lib\\site-packages\\sklearn\\tree\\tree.py\", line 365, in _validate_X_predict\r\n    X = check_array(X, dtype=DTYPE, accept_sparse=\"csr\")\r\n  File \"C:\\Python27\\lib\\site-packages\\sklearn\\utils\\validation.py\", line 398, in check_array\r\n    _assert_all_finite(array)\r\n  File \"C:\\Python27\\lib\\site-packages\\sklearn\\utils\\validation.py\", line 54, in _assert_all_finite\r\n    \" or a value too large for %r.\" % X.dtype)\r\n```\r\n[DefaultDB.db.txt](https://github.com/CellProfiler/CellProfiler-Analyst/files/103469/DefaultDB.db.txt)\r\n[DefaultDB.properties.txt](https://github.com/CellProfiler/CellProfiler-Analyst/files/103467/DefaultDB.properties.txt)\r\n[MyTrainingSet.txt](https://github.com/CellProfiler/CellProfiler-Analyst/files/103466/MyTrainingSet.txt)"}}