例如,如何获取表示例如OR(b AND NOT c)的0和1表。我在各个逻辑门之下,但如何将各个部分组合在一起。我已经尝试了,但无济于事。
答案 0 :(得分:0)
答案 1 :(得分:0)
I'm not aware of a general method to find a linear decision function. What you can do is training a linear classifier on the boolean table and see the result.
A possible decision function for OR could be:
if A+B-0.5>0:
return 1
else:
return 0