提交 00d10a13 authored 作者: Frederic Bastien's avatar Frederic Bastien

fixed typo.

上级 863dd863
...@@ -23,13 +23,13 @@ class Blah(M.ModuleInstance): ...@@ -23,13 +23,13 @@ class Blah(M.ModuleInstance):
M.default_initialize(self,**init)#equivalent to previous line. M.default_initialize(self,**init)#equivalent to previous line.
def __eq__(self, other): def __eq__(self, other):
if not isinstance(other.component, SoftmaxXERegression1) and not isinstance(other.component, SoftmaxXERegression2): if not isinstance(other.component, SoftmaxXERegression1) and not isinstance(other.component, SoftmaxXERegression2):
raise NotImplemented raise NotImplementedError
#we compare the member. #we compare the member.
if (self.w==other.w).all() and (self.b==other.b).all() and self.stepsize == other.stepsize: if (self.w==other.w).all() and (self.b==other.b).all() and self.stepsize == other.stepsize:
return True return True
return False return False
def __hash__(self): def __hash__(self):
raise NotImplemented raise NotImplementedError
def fit(self, train, test): def fit(self, train, test):
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论