2
$\begingroup$

Here is what should be a simple problem with the current state of technology:

foo = Array[With[{pair = RandomInteger[1000, 2]}, 
   pair -> If[pair[[1]] > pair[[2]], 1, 0]] &, 2000]

p = Predict[foo]

Now, this gives me total junk, and giving "RandomForest" or "NeuralNetwork" as method does not give any joy either. Any suggestions?

$\endgroup$

closed as off-topic by m_goldberg, happy fish, MarcoB, xslittlegrass, István Zachar May 14 '17 at 7:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – m_goldberg, happy fish, MarcoB, xslittlegrass, István Zachar
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    $\begingroup$ Isn't it a task for Classify? Then it performs logistic regression with almost perfect test results. $\endgroup$ – swish May 12 '17 at 23:48
  • $\begingroup$ @swish I am a complete novice at this, so I had no idea these were different... $\endgroup$ – Igor Rivin May 12 '17 at 23:57
  • 2
    $\begingroup$ The downvote seems uncalled for. $\endgroup$ – Igor Rivin May 13 '17 at 3:03

Browse other questions tagged or ask your own question.