I have a model which is trained with input shape of (5,20) and out put for 20 , where 5…
Jump to turn (24)
- 1I have a model which is trained with input shape of (5,20) and out put for 20 ,
- 2No No, I think you misunderstood it. Current model doesn't outputs a prediction
- 3Let's say I am ready to make changes in my model. From the first option above, d
- 4Could you elaborate more on the alternative way you suggested?
- 5okay listen, forget that. new problem I have excel data in which there are 20 co
- 6please help me with the code
- 7what is the shape of X\test here?
- 8okay so you suggest, I run the above (similar/optimized as per need) model for m
- 9Yes please, that is very good idea. Can you please explain me the second approac
- 10I agree, but see the problem is I do not have any column called RPM. My datafram
- 11are you sure about the code? because with this I am getting encoded dataframe in
- 12Okay thanks for correction. I agree with this. but here when you said , "You can
- 13I agree, but again this model would expect end user to enter 20 features input i
- 14can you elaborate more on alternate approach? how to code for that? what would b
- 15but wait, in this approach RPM should also be there as column in my dataset corr
- 16okay wait, how would that work again? I have 45000 rows I have 20 columns if I e
- 17First of all this may not work as data.shape[0] is 45000 and in rpm list there w
- 18I understood but the code that you gave is creating a dataset with 900000,21 whe
- 19no sir, this will create correct dataframe but it will have only 2000 in the col
- 20ok sir, this works and gives me data frame of shape 900000,3 where in power\cons
- 21Okay X and y is ready then how to define and train LSTM?
- 22don't you think I should divide X and y in train and test ?
- 23then based on this X\train, y\train and similar test variable can you please rew
- 24thanks but before I try above code can you please add early stopping logic there
- User
I have a model which is trained with input shape of (5,20) and out put for 20 , where 5 is input time-stamps and 20 is feature.
Can I used this trained model in such a way that from end-user if I get an input for 1 feature, model should be able to predict that 1 feature.
Because now I need to get an input for all 20 features in order to predict anything, I don't want that.
Does the problem makes sense?Could you help me?
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.