I have a data-set with 2 target classes. In training dataset, the ratio of the 2 classes are 1:93
With my neural network, the current accuracy is 63%. I tried undersampling, oversampling, equal sampling but not improvements.
I have a data-set with 2 target classes. In training dataset, the ratio of the 2 classes are 1:93
With my neural network, the current accuracy is 63%. I tried undersampling, oversampling, equal sampling but not improvements.
You have not specified that what neural network you are using but as comments, you should try to fit your data first. You have to try to find a model that learns your training data. For this purpose you don't have to increase the number of data, at least not at this stage. You should try to find a good model which suits your data. For this purpose you have to change the hyper-parameters of your neural network, e.g. number of layers or number of neurons in layers. You can take a look at here and here which the former can help you and the latter helps you understand the features learned by CNNs
in case you are using them.
For using F1
score in Keras
I've not seen but you can implement it and pass it to compile method, take a look at here.
MLP
. We use CNNs
usually in cases that the locality of the features, like images, are important. If you have image data I recommend you using CNNs
. Moreover both links may help you. Also, welcome to our comunity.
$\endgroup$
Commented
Jan 29, 2018 at 17:50