我是ML及其概念的新手,我正在尝试使用sklearn实现SVR来解决房价问题。当我拟合模型时,我收到了这个错误
'type 'exceptions.ValueError'>, ValueError("Mix type of y not allowed, got types set(['continuous', 'multiclass'])",), <traceback object at 0x000000001493E388>v
在分类问题中,我们更喜欢使用tf.nn.softmax函数,因为该函数以概率形式给出输出,或者我们也可以实现tf.nn.softmax_cross_entropy_with_logits,该函数对模型的输出应用我想把我的数据分成两类。我遇到一个代码,他们在最后一层使用了tf.nn.sigmoid_cross_entropy_with_logits。我想知道我们可以在最后一层使用sigmoid作为激活函数吗?因为在模型的末尾,当我们检查模型的准确性时,我们使用以下命令
t