我正在寻找设置端到端机器学习管道的最佳方法,并评估数据探索组件选项。
我试图找出谷歌云数据实验室和谷歌云人工智能平台笔记本之间的区别。它们似乎都提供了相似的功能,所以不确定它们为什么都存在,或者一个是否是另一个的新迭代。
如果它们不同,一个比另一个有什么好处?
google-cloud-platform google-cloud-datalab gcp-ai-platform-notebook
我在这里关注了这个问题,特别是添加
export RUBYOPT='-W:no-deprecated -W:no-experimental'
Run Code Online (Sandbox Code Playgroud)
到我的 .zshrc 文件。
尽管如此,我仍然收到大量警告。例如,:
/Users/XXX/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/sqlite3-1.4.1/lib/sqlite3/database.rb:89: warning: rb_check_safe_obj will be removed in Ruby 3.0
/Users/XXX/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/integer.rb:13: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/XXX/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activemodel-6.0.2.1/lib/active_model/type/value.rb:8: warning: The called method `initialize' is defined here
Run Code Online (Sandbox Code Playgroud)
我不确定为什么没有通过 RUBYOPT 抑制。
我需要以clean()Django模型形式覆盖该方法,以对输入的数据执行其他唯一性检查。
该页面提供了实现的详细信息:https : //docs.djangoproject.com/en/1.11/ref/forms/validation/复制在这里:
def clean(self):
cleaned_data = super(ContactForm, self).clean()
cc_myself = cleaned_data.get("cc_myself")
subject = cleaned_data.get("subject")
if cc_myself and subject:
# Only do something if both fields are valid so far.
if "help" not in subject:
raise forms.ValidationError(
"Did not send for 'help' in the subject despite "
"CC'ing yourself."
)
Run Code Online (Sandbox Code Playgroud)
但是我很困惑为什么这个方法不在return cleaned_data函数的结尾?当然这是正确的做法吗?