Fan sayfamıza katılın
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
- Görüntülemeler:
- 2111
- Derecelendirme:
- Yayınlandı:
- 2023.12.19 17:47
-
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
ONNX is an open-source format for representing machine learning models. The script allows the user to select an ONNX model file through a file dialog. It then creates an ONNX session, retrieves information about the input and output tensors in the model, and prints this information to the console.
Here's a breakdown of the script's functionality:
-
File Selection:
- The script prompts the user to select an ONNX model file through a file dialog.
-
Model Processing:
- It displays a message indicating that the ONNX model file is being processed, mentioning the file name and indicating that debug logs are enabled.
-
ONNX Session Creation:
- It creates an ONNX session using the selected model file.
- If there is an error during the creation of the session, it prints an error message to the console and exits the script.
-
Input Information:
- It retrieves and prints information about the input tensors in the ONNX model.
- For each input tensor, it prints the input index, input name, and additional information retrieved using the OnnxGetInputTypeInfo function.
-
Output Information:
- It retrieves and prints information about the output tensors in the ONNX model.
- For each output tensor, it prints the output index, output name, and additional information retrieved using the OnnxGetOutputTypeInfo function.
![Price Density - Market Noise Index](https://c.mql5.com/i/code/indicator.png)
A sophisticated tool that accurately measures market noise
![MQL5 Programming for Traders – Source Codes from the Book. Part 7](https://c.mql5.com/i/code/expert.png)
The final seventh part of the book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and general-purpose technologies such as networking, databases, and cryptography.
![Candle ZigZag](https://c.mql5.com/i/code/indicator.png)
Candle ZigZag is an indicator which changes its leg if a candlestick color changes
![Linear Regression calculation based on pine script v4](https://c.mql5.com/i/code/indicator.png)
This is the exact conversion of linreg function from pine script v4 as an mql5 indicator.