自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

YamatoDaiski的博客

A Simple Blog (๑•́ ₃ •̀๑)

  • 博客(21)
  • 资源 (1)
  • 收藏
  • 关注

原创 Scikit-Learn Exercise

Scikit-Learn

2018-06-17 13:12:07 235

原创 Jupyter Notebook Exercise

Jupyter Notebook Exercise%matplotlib inlineimport randomimport numpy as npimport scipy as spimport pandas as pdimport matplotlib.pyplot as pltimport seaborn as snsimport statsmodels.api ...

2018-06-10 22:12:25 338

原创 Scipy Exercise

Scipy ExerciseExercise 1: Least squaresGenerate matrix A∈Rm×nA∈Rm×nA ∈ R_{m×n} with m>nm>nm > n. Also generate some vector b∈Rmb∈Rmb ∈ R_m. Now find x=argminx||Ax−b||2x=arg⁡minx||Ax−b||2x =...

2018-06-04 20:32:06 189

原创 Matplotlib Exercise

Matplotlib ExerciseExercise 1: plotting a functionPlot the function     f(x)=sin2(x−2)e−x2f(x)=sin2⁡(x−2)e−x2f(x)=\sin^2(x-2)e^{-x^2} over the interval [0,2]. Add proper axis labels, a title, et...

2018-05-27 17:53:55 146

原创 Numpy Exercise

NumpyGenerate matrices A, with random Gaussian entries, B, a Toeplitz matrix, where A ∈Rn×m and B ∈Rm×m, for n = 200, m = 500.import numpyimport time# Generate random seedseed = numpy.int64(ti...

2018-05-20 21:33:43 194

原创 Binary Tree Inorder Traversal

[LeetCode - Binary Tree] 94. Binary Tree Inorder Traversal题目来源Binary Tree Inorder Traversal题意分析给定一个二叉树,返回它的中序遍历。示例:输入: [1,null,2,3] 1 \ 2 / 3 输出: [1,3,2]解题思路使用...

2018-05-06 20:38:30 106

原创 Minimum Depth of Binary Tree

[Leet Code - Depth-first Search] 111. Minimum Depth of Binary Tree题目来源Minimum Depth of Binary Tree题意分析给定一个二叉树,找出其最小深度。 最小深度是从根节点到最近叶子节点的最短路径上的节点数量。 说明: 叶子节点是指没有子节点的节点。解题思路没啥好说的,深度优...

2018-05-01 22:13:30 133

原创 Longest Palindromic Substring

[Leet Code - String] 5. Longest Palindromic Substring题目来源Longest Palindromic Substring题意分析给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为1000。解题思路显而易见该题的解题方法在于遍历,但是问题的关键在于如何遍历。考虑如下事实:回文串都有一个“...

2018-05-01 21:56:19 148

原创 Container With Most Water

[Leet Code - Array] 11. Conatainer With Most Water题目来源Container With Most Water题意分析给定 n 个非负整数 a1,a2,…,an,每个数代表坐标中的一个点 (i, ai) 。画 n 条垂直线,使得垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。找出其中的两条线,使得它们与 x 轴...

2018-05-01 20:57:00 1924

原创 第十一章课后作业

Chapter 1111-1 城市和国家# city_functions.pydef city_country(city, country): info = city.title()+", "+country.title() return info# test_city.pyimport unittestfrom city_functions import c...

2018-04-15 11:59:54 288

原创 第十章课后作业

Chapter 1010-1 Python学习笔记with open("learning_python.txt") as file_object: print(file_object.read())print()with open("learning_python.txt") as file_object: for line in file_object: ...

2018-04-06 19:53:27 758

原创 第九章课后作业

Chapter 99-1 餐馆class Restaurant: def __init__(self, restaurant_name, cuisine_type): self.restaurant_name = restaurant_name self.cuisine_type = cuisine_type def describ...

2018-04-05 22:31:45 525

原创 第八章课后作业

Chapter Eight8-1 消息def display_message(): print("We learn functions in this chapter.")display_message()8-2 喜欢的图书def favorite_book(title): print('One of my favorite books is ' + title...

2018-03-29 19:13:25 231

原创 第七章课后作业

Chapter Seven7-1 汽车租赁car = input("Please tell me what kind of car would you like to rent.\n")print("Let me see if I can find you a " + car.title() + ".")7-2 餐馆订位guest_num = int(input("How man...

2018-03-27 10:07:53 259

原创 第六章课后作业

Chapter Six6-1 人james = { 'first_name': "James", 'last_name' : "Brown", 'age' : 23, 'live_city' : "Hong Kong"}print("First name:\t" + james['first_name'])print("Last name:\t...

2018-03-22 17:34:16 420

原创 第五章课后作业

Chapter Five5-1 条件测试course = "Operation System"print("Is course == 'Operation System'? I predict True")print(course == 'Operation System')print("Is course == 'Computer Networking'? I predict...

2018-03-20 20:21:35 485

原创 第四章课后作业

Chapter Four4-1 比萨pizzas = ["Black Pepper Beef", "New Orleans", "Stuffed Crust Jumbo Shripm Crown"]for pizza in pizzas: # print(pizza) print("I like " + pizza + " pizza.")print("I reall.

2018-03-15 23:01:36 301

原创 第三章课后作业

Chapter Three3-1 姓名names = ["Wu Yanbing", "Wu Dechong", "Xu Jing"]for name in names: print(name)3-2 问候语names = ["Wu Yanbing", "Wu Dechong", "Xu Jing"]for name in names: pri

2018-03-15 17:16:12 505

原创 一个小目标(雾) -- 基于深度学习的普适智能推荐系统框架

一点想法 对Python有一定了解的人都知道Python一个很热门的应用领域就是深度学习。Python在深度学习方面有TenseFlow等一系列成熟的深度学习框架,因此使用Python来开发深度学习应用是很有优势的。而对于深度学习的诸多应用领域中,我比较感兴趣的就数推荐系统方面的应用。这就是为什么我想要试着做一个基于深度学习的普适智能推荐系统框架的原因。理论基础 推荐系统...

2018-03-10 23:05:30 458

原创 关于Python官网

简洁的界面设计 最开始老师要求我们访问Python,并谈谈自己的发现与收获的时候,我是有些不以为然的。我处于下载各种编程的IDE和运行环境的目的,也浏览过一些诸如Java,Dev-C++等编程有关的网站,这些网站都给我一种粗制滥造般的感觉,虽然也不至于太过难看,但怎么说也与网站内容的广泛应用不符,显得太过寒碜了些,不佳的第一印象让我对于浏览这些网站也性质寥寥,说的难听,Pyhton这样一门...

2018-03-10 21:11:20 687

原创 第二章课后作业

Chapter Two2-1 简单消息message = "砍口垒,哈吉马路油"print(message)2-2 多条简单消息message = "砍口垒,哈吉马路油"print(message)message = "Poi!"print(message)2-3 个性化消息name = "Agaki"print("Hello " + name + ".

2018-03-07 22:16:59 371

Scikit-Learn Exercise

Scikit-Learn Exercise Code. 机器学习库Scikit-Learn练习源代码。

2018-06-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除