Machine learning in trading: theory, models, practice and algo-trading - page 3448

 
Aleksey Vyazmikin #:

I look for ideas in such articles. It is better to read articles with code from authors who specialise in it.

Python is terrible for careless attitude to variables - it is hard to read it at all, because there are many variations of doing the same thing by different methods.

Well, depends on the time spent on the article. I don't have a steady income, so as an option when other things are done, it can be an interesting source of income. Although I write at least a month article - almost every day spending time to work on it - probably need to change the approach.

I have a different approach. I don't write articles. I just share the material I have. I add letters to the code. To develop the MO theme, so to speak.

Python is the simplest and most understandable language!
 
Maxim Dmitrievsky #:
Python is the simplest and easiest to understand language!

Well... here's an example - I've been stumped for a long time - I don't understand why the code doesn't work properly.

import pandas as pd

#  Исходные данные
Input_Data = pd.DataFrame({'A': [1, 2, 3],
                           'B': [4, 5, 6]})
Input_Info = pd.DataFrame({'C': [7, 8, 9],
                           'D': [10, 11, 12]})

#  Выбираем строку для объединения (предположим, Stroka = 0)
Stroka = 0

#  Объединяем строку из Input_Data и Input_Info
row = pd.concat([Input_Data.iloc[Stroka], Input_Info.iloc[Stroka]], axis=1)

print(row)

We should get a row with columns ABCD in a row, but we get

     0     0
A  1.0   NaN
B  4.0   NaN
C  NaN   7.0
D  NaN  10.0
 
Aleksey Vyazmikin #:

Well... here's an example - I've been stumped for a long time - I don't understand why the code doesn't work properly.

We should get a row with ABCD columns in a row, but we get

It's the code's fault, no other way round)
 
Aleksey Vyazmikin #:

Well... here's an example - I've been stumped for a long time - I don't understand why the code doesn't work properly.

We should get a row with ABCD columns in a row, but we get

that's in the pandas documentation, please. Or chatgpt.

Pandas is not python, but a pluggable lib.

I already gave a link to it on my channel, use it!
 
Maxim Dmitrievsky #:

it's in the pandas documentation, please. Or chatgpt.

Pandas is not python, it's a pluggable lib.

Yes this is an example from ChatGPT - it didn't work - went digging around the internet - and didn't find the answer... but I did find similar code that probably used to work.

For me these libraries are all python as they are too popular.

Then I started to pester ChatGPT in another way - what's wrong with this code, he denied it - everything is fine, then he gave me some strange variant of its writing, which worked, and I asked him why it works, and he started to apologise - he got it wrong and it shouldn't work....

 
Maxim Dmitrievsky #:
I already gave a link on my channel, use it!

Many shells for launching trained models have already been invented, but I can't get my hands on them yet, and there are not many large models in Russian.

 
mytarmailS #:
It's the code's fault, no other way round)

If you needed two lines instead of one, the code would work correctly....

 
Aleksey Vyazmikin #:

Many shells for running trained models have already been invented - but so far the hands do not reach, and there are not very many large models in Russian.

There is a choice of several recent models and all for free from one application.

 
Aleksey Vyazmikin #:

Yes this is an example from ChatGPT - it didn't work - went digging around the internet - and didn't find the answer... but I did find a similar code that probably worked before.

For me these all libraries are python as they are too popular.

Then I started to pester ChatGPT in another way - what's wrong with this code, he denied it - everything is fine, then he gave me some strange variant of its writing, which worked, and I asked him why it works, and he started to apologise - he got it wrong and it shouldn't work....

Well, I don't keep all the nuances in my head either. I use the documentation.

 
Maxim Dmitrievsky #:

There's a selection of several of the latest models and all free from one app.

Yes I know - I saw a video clip - they make a lot of different shells nowadays.

Reason: