I use TensorFlow LinearClassifier as well as DNN to classify a dataset from two classes.
However, the problem is that the data set contains 96% of the positive result and 4% of the negative result, and my program always returns the forecast as positive. Of course, in this case, I would achieve an accuracy of 96%, but that makes no sense.
What is a good way to handle this situation?
source share