Closed MihaiHoriaPopescu closed 4 years ago
The function actually works, the problem was that I was using the label as dense and I was classifying a continuous value, where I was trying to classify nominal values. Changing the format of the label is working properly.
Hello, I have some problems on the evaluation of my model. In the example of the "LSTM Sequence Classifier" there is no example of how to evaluate the model, or the way I can feed the model.Evaluate with a full sequence for the classification. I have tried to implement a function of evaluation similar to the one shown in TestHelper, but the results are not the one expected, since, I get an evaluation on each line of the sequence and not on the full sequence. Can someone show me how I can use the model.Evaluate with a sequence, or to evaluate a file with multiple sequences?
`public static float ValidateModelWithMinibatchSource(string modelFile, MinibatchSource testMinibatchSource, string featureInputName, string labelInputName, string outputName, DeviceDescriptor device, int maxCount = 1000) { Function model = Function.Load(modelFile, device); var featureInput = model.Arguments[0]; Console.WriteLine(featureInput);