Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Backtesting trading strategy
Post: RE: Backtesting trading strategy

I now did solve the first problem about set the index to be the same. The solution is: test_set.index = pd.to_numeric(long.index)My only problem now is to use the value of the cells(stock names) in lo...
Finpyth Data Science 1 931 Mar-20-2020, 04:32 PM
    Thread: TensorFlow install issues
Post: RE: TensorFlow install issues

Hallo. I run Tensorflow 2.1.0 and Cuda 10.2 I did installing it by pip install and had installed everything in that way. I run python 3.7 in Spyder.
Finpyth Data Science 2 729 Mar-19-2020, 04:31 PM
    Thread: Backtesting trading strategy
Post: Backtesting trading strategy

Hallo This is my last question for my thesis. I’m about to backtest my strategy, but ran into the problem that i have some price data from Eikon that i have to use. I tried with backtesting.py but ...
Finpyth Data Science 1 931 Mar-18-2020, 05:37 PM
    Thread: Can't find some libraries while importing TensorFlow
Post: RE: Can't find some libraries while importing Tens...

I installed Tensorflor for GPU last week, and i had to download Nvidia Cuda and downloaded som DLL files too. There is guides on how to do it on youtube and google.
Finpyth Data Science 6 1,110 Mar-18-2020, 04:29 PM
    Thread: Keras.Predict into Dataframe
Post: RE: Keras.Predict into Dataframe

Miss spelling, my bad :) It returns a list that consist of one DataFrame for each of my targets(40). Thank you for the help!
Finpyth Data Science 13 2,889 Mar-15-2020, 06:22 PM
    Thread: Keras.Predict into Dataframe
Post: RE: Keras.Predict into Dataframe

(Mar-15-2020, 01:01 PM)jefsummers Wrote: predictions = []. Sorry, forgot the equal sign It's just to define predictions as a list so you can use append It works in some way! **biggrin** It return...
Finpyth Data Science 13 2,889 Mar-15-2020, 01:39 PM
    Thread: Keras.Predict into Dataframe
Post: RE: Keras.Predict into Dataframe

(Mar-14-2020, 04:22 PM)jefsummers Wrote: May be running into 2 variables - predictions and predictions[]. Idea - go back and in line 1 put predictions[]Then, in your prediction line use predictions...
Finpyth Data Science 13 2,889 Mar-15-2020, 12:57 PM
    Thread: Keras.Predict into Dataframe
Post: RE: Keras.Predict into Dataframe

(Mar-14-2020, 11:45 AM)jefsummers Wrote: The line you remove actually should not do anything - you assign predictions to a blank dataframe and then reassign it in the for loop. Adding the [i] then m...
Finpyth Data Science 13 2,889 Mar-14-2020, 01:30 PM
    Thread: Keras.Predict into Dataframe
Post: RE: Keras.Predict into Dataframe

(Mar-14-2020, 02:24 AM)jefsummers Wrote: The colon is on the opposite side in train_features vs X[train_size:], so those are not the same thing. After correcting that, do predictions.shape() and pos...
Finpyth Data Science 13 2,889 Mar-14-2020, 10:39 AM
    Thread: Keras.Predict into Dataframe
Post: RE: Keras.Predict into Dataframe

(Mar-13-2020, 05:25 PM)jefsummers Wrote: Code is incomplete so cannot test, but I think line 32 should be predictions = model.predict(train_features) and when you are ready to test change to tes...
Finpyth Data Science 13 2,889 Mar-13-2020, 05:53 PM
    Thread: Keras.Predict into Dataframe
Post: Keras.Predict into Dataframe

Hallo. i'm working with multiple machine learning models. I want to have all my predictions into a dataframe. The following is working for my other ml scripts(sklearn), expect for this one where i u...
Finpyth Data Science 13 2,889 Mar-13-2020, 04:57 PM
    Thread: Interate for loop over certain columns in dataframe
Post: RE: Interate for loop over certain columns in data...

Thank you very much!
Finpyth Data Science 2 817 Mar-06-2020, 08:34 AM
    Thread: Interate for loop over certain columns in dataframe
Post: Interate for loop over certain columns in datafram...

Hallo. I am working on my bachelor thesis where i want to run a loop over certain columns in my dataframe and create future and lagged returns of a portfolio. I works fine for the first loop(future) b...
Finpyth Data Science 2 817 Mar-05-2020, 12:17 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020