Spyder:Python中机器学习的强大武器

So, first of all, you would need to install Anaconda distribution which can be downloaded from the link https://www.anaconda.com/download/ (for Windows users only).

因此,首先,您需要安装Anaconda发行版 ,可以从链接https://www.anaconda.com/download/下载(仅限Windows用户)。

The installation is pretty simple just keep on clicking next and agree to terms and conditions. So, the reason for installing Anaconda is that it comes with a lot of preinstalled packages and Spyder is one of them. After installing the software just click on the anaconda icon on the desktop or go to the search option in windows 10 and type in anaconda navigator, for the Ubuntu users you can install anaconda using the terminal. As you open the navigator you will see the anaconda GUI which looks like this:

安装非常简单,只需继续单击下一步并同意条款和条件即可。 因此,安装Anaconda的原因是它附带了许多预安装的软件包,而Spyder就是其中之一。 安装软件后,只需单击桌面上的anaconda图标或转到Windows 10中的搜索选项,然后键入anaconda导航器,对于Ubuntu用户,您可以使用终端安装anaconda。 打开导航器时,您将看到anaconda GUI,如下所示:

Anaconda distribution 1

Screenshot-0

屏幕截图-0

From here just click on the launch button below the Spyder and a new Spyder GUI will be opened in a separate window:

在这里,只需单击Spyder下方的启动按钮,就会在单独的窗口中打开一个新的Spyder GUI:

Anaconda distribution 2

Screenshot-1

屏幕截图1

As you can see by default a new .py file named untitled2.py has been created. Untitled2 is the name of the file in which you will be writing your python code.

如您所见,默认情况下,已创建一个名为untitled2.py新.py文件Untitled2是将在其中编写python代码的文件的名称。

Here, I would be highlighting some of the basic features that important features and would be explaining them to you:

在这里,我将重点介绍一些重要功能的一些基本功能,并向您解释它们:

Anaconda distribution 3

Screenshot-2

屏幕截图2

The portion marked in sky blue is used to set the directory of the file to be opened, in the previous article (Linear Regression in Machine Learning) I had mentioned in my code that I have stored the source code and .csv file in the same folder so after you save those 2 files in the same folder you can just go to this set directory option and select the folder in which you have stored the two files.

在上一篇文章( 机器学习中的线性回归)中 ,用天蓝色标记的部分用于设置要打开的文件的目录,我在代码中提到将源代码和.csv文件存储在同一目录中。文件夹,因此在将这2个文件保存在同一文件夹中之后,您只需转到此设置目录选项,然后选择存储两个文件的文件夹即可。

The portion marked in orange is the variable explorer this basically shows us the info about all the variables that we have created, after selecting your code using ctrlA and compiling your code using shift-enter just click on this option you will see the following:

用橙色标记的部分是变量浏览器,它基本上向我们显示了我们创建的所有变量的信息,在使用ctrlA选择代码并使用shift-enter编译代码之后,只需单击此选项,您将看到以下内容:

Anaconda distribution 4

Screenshot-3

屏幕截图3

On the upper right of this screen you will see a box containing some names below the name column such as x_test, x_train etc these are the variables I have used and below the type column, you’ll see their datatype. As you move further right you can see size as well as the values stored.

在此屏幕的右上角,您将在名称列下方看到一个包含一些名称的框,例如x_test , x_train等,这些是我使用的变量,在类型列下方,您将看到其数据类型。 向右移动时,您可以看到大小以及存储的值。

As you go back to screenshot-2 you will see another portion marked in dark blue. The area marked is known as the file explorer and the main purpose of the file explorer is to select the files and load it on your Spyder. It also allows you to have a glimpse of the files present in the particular directory that you have selected.

回到屏幕快照2,您将看到另一部分标记为深蓝色。 标记为的区域称为文件浏览器,文件浏览器的主要目的是选择文件并将其加载到Spyder上。 它还使您可以浏览所选特定目录中的文件。

And at last but not the least you’ll see the IPython console option marked with black ink in screenshot-2. IPython is basically a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language, that offers introspection, rich media, shell syntax, tab completion, and history.

最后但并非最不重要的一点是,您将在screenshot-2中看到用黑色墨水标记的IPython控制台选项。 IPython基本上是用于多种编程语言进行交互式计算的命令外壳,最初是为Python编程语言开发的,提供自省,富媒体,外壳语法,制表符补全和历史记录。

These are some of the basic features that Spyder offers, however, there are my more just install Anaconda see for yourself.

这些是Spyder提供的一些基本功能,但是,我还有更多安装Anaconda的功能。

翻译自: https://www.includehelp.com/ml-ai/spyder-a-powerful-weapon-for-machine-learning-in-python.aspx

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/545830.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

C语言+数据结构总结

一、C语言部分 1、数据类型: Int 整形 4字节Short 短整形 2字节Long 长整形 4字节Float 单精度浮点型 4字节Double 双精度浮点型 8字节Char 字符型 1字节2、变量 …

对内存重叠的深入认识

内存重叠:拷贝的目的地址在源地址范围内。所谓内存重叠就是拷贝的目的地址和源地址有重叠。在函数strcpy和函数memcpy都没有对内存重叠做处理的,使用这两个函数的时候只有程序员自己保证源地址和目标地址不重叠,或者使用memmove函数进行内存拷…

Android特效 五种Toast具体解释

Toast是Android中用来显示显示信息的一种机制,和Dialog不一样的是,Toast是没有焦点的,并且Toast显示的时间有限,过一定的时间就会自己主动消失。 1.默认效果: 代码:Toast.makeText(getApplicationContext(), "默认Toast样式&…

为什么阿里巴巴禁止使用BigDecimal的equals方法做等值比较?

△一个对Coding有着独特追求的人△作者 l Hollis来源 l Hollis(ID:hollischuang)BigDecimal,相信对于很多人来说都不陌生,很多人都知道他的用法,这是一种java.math包中提供的一种可以用来进行精确运算的类型…

日期getUTCMonth()方法以及JavaScript中的示例

JavaScript Date getUTCMonth()方法 (JavaScript Date getUTCMonth() method) getUTCMonth() method is a Dates class method and it is used to get the current month’s value according to the UTC (Universal time coordinated) between the range of 0 to 11, where 0 f…

VB另类技巧(可以用于VBA)-指针的使用

大家都知道C中可以使用指针,但现在VB(当然也有VBA)也可以使用指针了,这是我在网上看的一篇文章,大家参考一下。想当年东方不败,黑木崖密室一战,仅凭一根绣花针独战四大高手,神出鬼没…

动图演示:手撸堆栈的两种实现方法!

作者 | 王磊来源 | Java中文社群(ID:javacn666)转载请联系授权(微信ID:GG_Stone)正式开始之前,先和各位朋友聊聊公众号后期的一些打算,后面的文章计划写一些关于数据结构和算法的内容…

Java中的异常处理

1 class YiChang{2 public static void main(String[] args){3 A anew A();4 a.show();5 }6 }7 8 class A{9 int[] i{1,2,3}; 10 public void show(){ 11 System.out.println(i[3]); 12 } 13 } 运行上面代码,会抛出这样…

数组copyWithin()方法以及JavaScript中的示例

JavaScript copyWithin()方法 (JavaScript copyWithin() method) copyWithin() method is used to copy the specified elements from an array and replace from specified index within the same array. It changes the this array (actual array). copyWithin()方法用于从数…

多图带你彻底理解Java中的21种锁!

作者 | 悟空聊架构来源 | 悟空聊架构(ID:PassJava666)本篇主要内容如下:本篇主要内容本篇文章已收纳到我的Java在线文档、 Github我的SpringCloud实战项目持续更新中帮你总结好的锁:序号锁名称应用1乐观锁CAS2悲观锁sy…

杨辉三角——数组解决

杨辉三角如图下所示,每一行的第一个数和最后一个数都为1,每一行中间的数(出去第一个和最后一个)a等于上一行与其相同列数的数b与数b前面的数之和。例: 第3行第2列的数是3,它就等于第2行第2列的数&#xff…

作文议论文开头结尾

一、 开头篇 1. Nowadays, it is commonly/widely/generally believed that…., but I wonder… 如今,人们普遍认为……,但是我怀疑…… 2. With the rapid growth of… … have/has become increasingly important in our daily life. 随着……的快速…

VS生成的exe文件如何在其他电脑上运行

在VS编译器上编写的程序都会生成一个exe文件,有时候写了一个很装逼的程序想在别人电脑炫耀一下,奈何将这个exe文件拷贝过去并不能运行,直接宣告装逼失败。为此将介绍一下如何将生成的exe文件在其他电脑上运行,步骤如下&#xff1a…

dumpstack_Java Thread类的静态void dumpStack()方法(带示例)

dumpstack线程类静态void dumpStack() (Thread Class static void dumpStack()) This method is available in package java.lang.Thread.dumpStack(). 软件包java.lang.Thread.dumpStack()中提供了此方法。 This method is used to print or display stack tracing of the cur…

netty websocket 简单消息推送demo

2019独角兽企业重金招聘Python工程师标准>>> 今天心情很不好!!! 原因保密。 这篇是基于"netty与websocket通信demo"。 错误想法:大量客户请求,共用一个worker,来实现推送。 正确作法&…

给 JDK 官方提了一个 Bug,结果...

图 by:石头北京-望京关于作者:程序猿石头(ID: tangleithu),现任阿里巴巴技术专家,清华学渣,前大疆后端 Leader。背景分享一下之前踩的一个坑,背景是这样的:我们的项目依赖于一个外部服务&#x…

Of Study - Francis Bacon

Of StudyFrancis Bacon 弗朗西斯培根Studies serve for delight, for ornament, and for ability. Their chief use for delight, is in privateness and retiring; for ornament, is in discourse;and for ability, is in the judgment and disposition of business.For expe…

解决exe文件在别人电脑上运行缺失文件情况

这里就以vs2013为例:编译后生成的exe文件拷贝到别人电脑上运行是会弹出一个窗口说缺失MSVCR120.dll和MSVCR120D.dll这两个文件。(其他vs版本的编译器在所提示的缺失文件按下述方法也可解决)下面就介绍一种方法解决。 1、在VS2013软件中找到MS…

Java日历的getMinimalDaysInFirstWeek()方法和示例

Calendar类的getMinimalDaysInFirstWeek()方法 (Calendar Class getMinimalDaysInFirstWeek() method) getMinimalDaysInFirstWeek() method is available in java.util package. getMinimalDaysInFirstWeek()方法在java.util包中可用。 getMinimalDaysInFirstWeek() method is…

HighCharts: 设置时间图x轴的宽度

这个x轴宽度的设置整了好久,被老板催的要死highcharts的api文档很难找,找了半天也没找到,网上资料少,说的试了下,也没有,我用的图里api文档里没有介绍,这个属性不知道的话,根本不好找…