AliY
AliY

Reputation: 557

Can i build three keras models in same script?

I had a small question, I have 3 of the same dataset, but one has been filtered assuming 10% outlier fraction, then 15% then 20%. I need to compare the mean squared error for each. I was thinking of building the same keras model 3 times in the same script, and run each individiually. I wanted to do so because I wanted to produce a graph at the end with epochs number on the x-axis, and the mse values of each dataset on y-axis, all in the same figure. is that possible?

Thank you

Upvotes: 1

Views: 34

Answers (1)

jared_mamrot
jared_mamrot

Reputation: 26494

Yes, this is absolutely possible, just name your models accordingly i.e. instead of model.fit() use model_1.fit() for dataset 1, model_2.fit() for dataset 2 etc

Upvotes: 3

Related Questions