zbchenchanghao
码龄14年
关注
提问 私信
  • 博客:16,352
    16,352
    总访问量
  • 130
    原创
  • 1,971,088
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2011-01-30
博客简介:

zbchenchanghao的博客

查看详细资料
个人成就
  • 获得26次点赞
  • 内容获得8次评论
  • 获得6次收藏
创作历程
  • 130篇
    2020年
成就勋章
TA的专栏
  • 机器学习
    1篇
  • Mac
    3篇
  • 手撕《机器学习实践》代码
  • PAT
    126篇
创作活动更多

新星杯·14天创作挑战营·第9期

这是一个以写作博客为目的的创作活动,旨在鼓励大学生博主们挖掘自己的创作潜能,展现自己的写作才华。如果你是一位热爱写作的、想要展现自己创作才华的小伙伴,那么,快来参加吧!我们一起发掘写作的魅力,书写出属于我们的故事。我们诚挚邀请你们参加为期14天的创作挑战赛! 注: 1、参赛者可以进入活动群进行交流、分享创作心得,互相鼓励与支持(开卷),答疑及活动群请见 https://bbs.csdn.net/topics/619626357 2、文章质量分查询:https://www.csdn.net/qc

473人参与 去参加
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

【机器学习】线性回归常用的几种衡量指标

一、MSE(Mean Squared Error)名称:均方误差公式:二、RMSE(Root Mean Squared Error)名称:均方根误差公式:三、MAE(Mean Absolute Error)名称:平均绝对值误差公式:注:上述衡量指标的局限:同一个模型,解决不同问题,因为数量量级可能不同,所以最终的结果无法横向对比,如果将最终的结果映射到[0,1]区间内,这样就可以横向比较哪个模型能更好的解决此问题,故R Squared即可满足要求。四、R ..
原创
发布博客 2020.11.20 ·
1375 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

Mac 安装 Pyspark

在Mac下搭建Pyspark需要安装:Java JDK Scala apache-spark Hadoop Pyspark安装的两种方式1.官网下载安装包,解压后配置环境变量2.使用brew进行安装/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"2-1.使用brew安装所需包brew install scalabrew install apach
原创
发布博客 2020.11.07 ·
633 阅读 ·
0 点赞 ·
0 评论 ·
3 收藏

Mac 安装 Python3

安装Xcode command line tool : $sudo xcode-select --installSetp2 安装HomeBrew 包管理工具ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装好之后可以跑一下 brew ...
原创
发布博客 2020.03.11 ·
207 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1047 Student List for Course (25分)

Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input S...
原创
发布博客 2020.02.21 ·
109 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1046 Shortest Distance (20分)

The task is really simple: givenNexits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file conta...
原创
发布博客 2020.02.21 ·
99 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1053 Path of Equal Weight (30分)

Given a non-empty tree with rootR, and with weightW​i​​assigned to each tree nodeT​i​​. Theweight of a path fromRtoLis defined to be the sum of the weights of all the nodes along the path fro...
原创
发布博客 2020.02.19 ·
87 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1052 Linked List Sorting (25分)

A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integerkeyand aNextpointer to the next structure. Now give...
原创
发布博客 2020.02.19 ·
114 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1051 Pop Sequence (25分)

Given a stack which can keepMnumbers at most. PushNnumbers in the order of 1, 2, 3, ...,Nand pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence of th...
原创
发布博客 2020.02.19 ·
99 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1050 String Subtraction (20分)

Given two stringsS​1​​andS​2​​,S=S​1​​−S​2​​is defined to be the remaining string after taking all the characters inS​2​​fromS​1​​. Your task is simply to calculateS​1​​−S​2​​for any given s...
原创
发布博客 2020.02.19 ·
77 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Mac 安装 Jupyte Notebook

前期准备安装pip 和 python安装直接安装pip install --upgrade pippip install jupyter.whl文件安装(备用)安装时,有时会很慢,可以使用迅雷下载.whl文件直接pip安装(一般会nodebook那个文件下载超时,其他的关联包,不需要管,系统会自动下载,也可那个文件超时,单独下哪个),方法:下载好.whl文件,打开终端,...
原创
发布博客 2020.02.18 ·
217 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

1057 Stack (30分)

Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push (inserting an element onto the top position) and Po...
原创
发布博客 2020.02.18 ·
92 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

1056 Mice and Rice (25分)

Mice and Riceis the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice...
原创
发布博客 2020.02.18 ·
97 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1055 The World's Richest (25分)

Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this job, but concentrate only on the peopl...
原创
发布博客 2020.02.18 ·
120 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

1054 The Dominant Color (20分)

Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the d...
原创
发布博客 2020.02.18 ·
98 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1060 Are They Equal (25分)

If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as0.123×10​5​​with simple chopping. Now given the number of signif...
原创
发布博客 2020.02.17 ·
145 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1059 Prime Factors (25分)

Given any positive integerN, you are supposed to find all of its prime factors, and write them in the formatN=p​1​​​k​1​​​​×p​2​​​k​2​​​​×⋯×p​m​​​k​m​​​​.Input Specification:Each input file co...
原创
发布博客 2020.02.17 ·
105 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1058 A+B in Hogwarts (20分)

If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to a Si...
原创
发布博客 2020.02.17 ·
121 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1064 Complete Binary Search Tree (30分)

A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key. The right s...
原创
发布博客 2020.02.16 ·
107 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1063 Set Similarity (25分)

Given two sets of integers, the similarity of the sets is defined to beN​c​​/N​t​​×100%, whereN​c​​is the number of distinct common numbers shared by the two sets, andN​t​​is the total number of ...
原创
发布博客 2020.02.16 ·
80 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

1062 Talent and Virtue (25分)

About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theory, a man being outstanding in both talent and virt...
原创
发布博客 2020.02.16 ·
97 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多