From 87d9da8586dc7ada61e6e4533399cb62d99efd5f Mon Sep 17 00:00:00 2001 From: Yang Hongbin Date: Tue, 10 Nov 2015 23:55:05 +0800 Subject: [PATCH] eliminate a potential bug example is already an instance class, this code may result in a error of "** is unknow and can't be cast into float" becuase example is a list of instance. --- Orange/classification/neural.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Orange/classification/neural.py b/Orange/classification/neural.py index 4be28d9b6..774de8973 100644 --- a/Orange/classification/neural.py +++ b/Orange/classification/neural.py @@ -264,7 +264,7 @@ def __call__(self, example, result_type=Orange.core.GetValue): :rtype: :class:`Orange.data.Value`, :class:`Orange.statistics.Distribution` or a tuple with both """ - example = Orange.data.Instance(self.domain, example) + #example = Orange.data.Instance(self.domain, example) # transform example to numpy if not self.domain.class_vars: example = [example[i] for i in range(len(example)-1)]