提交 122d7246 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

fixed the way NaNVariable works

上级 eb484245
...@@ -6,7 +6,7 @@ class NaNType(Type): ...@@ -6,7 +6,7 @@ class NaNType(Type):
""" """
why_nan: A string explaining why this variable is NaN why_nan: A string explaining why this variable is NaN
""" """
self.why_nane = why_nan self.why_nan = why_nan
def filter(self, data, strict=False, allow_downcast=None): def filter(self, data, strict=False, allow_downcast=None):
raise raise
...@@ -21,10 +21,4 @@ class NaNType(Type): ...@@ -21,10 +21,4 @@ class NaNType(Type):
class NaNVariable(Variable): class NaNVariable(Variable):
def __init__(self, why_nan = '(no explanation given)'): pass
"""
why_nan: A string explaining why this variable is NaN
"""
self.type = NaNType(why_nan)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论