1.%RUN
%RUN 运行jupyter本地文件,在实际学习中...%run没有用到过...

2.%timeit
%timeit 计算代码块运行的时间.这种计算时间方式比较精确.多次运行程序,得到平均时间.

3.%time
%time 单次计算代码块运行时间,这种方式计算一次,比较快. 在学习机器学习中,一般用的这种.

%RUN 运行jupyter本地文件,在实际学习中...%run没有用到过...
%timeit 计算代码块运行的时间.这种计算时间方式比较精确.多次运行程序,得到平均时间.
%time 单次计算代码块运行时间,这种方式计算一次,比较快. 在学习机器学习中,一般用的这种.
本文标题:1. 1 基础 - Jupyter
本文链接:https://www.haomeiwen.com/subject/wdiatftx.html
网友评论