You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Regression works with everything, the output is one number.
But when you ask any chat to write MLP-classifier, the Expert Advisor cannot recognise the output data of this model: "Buy", "Sell", "Hold". Either "1", "2", "3", or "0", "1", "2".
The error flies out
2025.02.12 08:13:46.866 Core 01 2021.01.01 00:00:00 ONNX: invalid handle passed to OnnxRelease function, inspect code 'X È$Zë3E' (291:7)
None of the chats, not even Dipsic, understands or knows how to fix the problem, generating possible codes that also lead to this error.
All chats say the same thing: since this is an MLP classifier, it has only 3 outputs, according to your labels (I feed it a csv file, where the last column is one of the three labels of a simple classification: buy, sell, hold. I tried string and numeric values in this column).
Then this block
. It changes the initialisation of the array
.
And an error appears.
I'm trying to print.
I get 2.
I don't understand anything.
If anyone understands what the error is, please let me know.
Python code for classifier - any, they all generate the same error.
For example, one of the implementations:
That is, the model itself - running in python. It's calculating something
But the advisor can't accept it.
It doesn't need to be discussed
Try {2,3} or {3}.
ask the python script to output the correct dimension of the output.
but most likely just {1}, it returns a structure where the fields already correspond to outputs.
For example, I have for a binary classifier is
Then you just create a structure in the code
Where the label field is the class values and the tensor is the probabilities
Wrong: label contains class values and tensor contains probabilities. So the output dimension is essentially 2,2, but since the structure is returned, you should put 1
Thank you
Thank you
That's what preprocessing, which you don't respect, is for :) to separate first the grains from the chaff, and then train it to predict the separated grains.
If preprocessing is good, the output is not quite rubbish either
Any chance you can fix this script to run with newer versions of python (3.10-3.12)?
I have a load of problems trying to get it to run on 3.9.
tx