Naveen
Naveen

Reputation: 852

How to determine activation, loss, optimizer in keras while making artificial neural network

This is my dataframe

https://drive.google.com/file/d/1qAnyOkp_YayqzZ4i0CwqCTDiYTIOmv6I/view?usp=sharing

I need to find the value of ra, last column of that dataset via the ANN

I have used keras library to make that, here is my code

https://gist.github.com/anonymous/9955247ad7341e5bc119556dead9fc71

But the y_pred variable has set of 0s in output. Am I doing anything wrong with activation function?

I need to predict the ra values with training dataset

P.S: I am a newbie to datascience and just I have started learning it via udemy

Upvotes: 0

Views: 190

Answers (1)

You can remove the second hidden layer as simple Ann is enough for this and also we don’t have to use activator at the output layer as it is regression problem.

Please see the sample code https://github.com/naveenkambham/MachineLearningModels/blob/master/NeuralNetwork.py . This is similar to your requirement.

Upvotes: 1

Related Questions