- 博客(78)
- 资源 (9)
- 收藏
- 关注
原创 [git] mac系统下git提交出错
问题描述mac系统 利用git时候 commit步出Your name and email address were configured automatically basedon your username and hostname. Please check that they are accurate.You can suppress this message by setting them explicitly: git config --global user.name "Your N
2022-05-09 10:06:12 1944
原创 [code] Chap 10 for ESL
Figure 10.2Firstly define the function to generate simulated data.# function for generating data for figure 10.2gen_eq_10_2_data <- function(N = 2000, p = 10){ X <- matrix( rnorm(N*p), ...
2018-12-13 22:25:40 348
原创 [Machine Learning] XGBoost
1. XGBoost介绍XGBoost模型即是一些“串联”树结构的组合,最终预测结果由多棵树共同决定。 模型公式:y=f(z)=∑Kk=1fk(z)y=f(z)=∑k=1Kfk(z)y=f(z)=\sum_{k=1}^K f_k(z) 模型预测:y^i=∑Kk=1f^k(xi)y^i=∑k=1Kf^k(xi)\hat y_i = \sum_{k=1}^K \hat f_k(x_i...
2018-03-20 17:03:21 341
原创 [Python] How to change python version for mac
step 1Open terminal and write open ~/.bash_profilestep 2Put external environment variable export PATH=${PATH}:/Library/Frameworks/Python.framework/Versions/3.6/binstep 3Re...
2018-03-18 13:41:23 563
转载 [转]解决 Excel 打开 UTF-8 编码 CSV 文件乱码的 BUG
解决 Excel 打开 UTF-8 编码 CSV 文件乱码的 BUG 作者:oyi319出处:http://blog.csdn.net/oyi319/article/details/6406506直接用 Excel 打开 UTF-8 编码的 CSV 文件会导致汉字部分出现乱码。 原因是 Excel 以 ANSI 格式打开,不会做编码识别。打开 UTF-8 编码的 CSV 文件的方法:1) 打开
2017-02-20 11:13:34 3272
原创 Python 100练习题[1-10]
1.. 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?import itertoolsdef permutation12341(): result0= list(itertools.permutations('1234', 3)) result1 = [''.join(i) for i in result0] result2 = [int(i
2016-12-28 15:22:48 1335
原创 Install pip and ipython
install pipsudo easy_install pip install ipythonsudo pip install ipython....end withSuccessfully installed appnope-0.1.0 backports.shutil-get-terminal-size-1.0.0 decorator-4.0.10 enum34-1.1.6 ipython-
2016-12-07 10:02:33 546
原创 [Latex] Beamer with Overlay
The numbers inside the pointed brackets tell LaTeX which slides the item should appear on. For example \textbf<2-3>{Only shown on slides 2 and 3} \item<-2,4-5,7>{Only shown on slides 1,2,4,5 and 7}
2016-11-22 10:13:30 2188
转载 傅里叶分析之掐死教程
作者:Heinrich 链接:https://zhuanlan.zhihu.com/p/19763358 来源:知乎 著作权归作者 所有。商业转载请联系作者获得授权,非商业转载请注明出处。谨以此文献给大连海事大学的吴楠老师,柳晓鸣老师,王新年老师以及张晶泊老师。转载的同学请保留上面这句话,谢谢。如果还能保留文章来源就更感激不尽了。——更新于2014.6.6,想直接看更新的同学可以直接跳到第四
2016-11-11 14:55:45 469
原创 Sublime text3作为Python的IDE不能正常使用input和raw_input
首先安装SublimeREPL(利用PackageCtrol),然后修改Preference->Key Bindings-User 把下面这段话copy进去[ {“keys”:[“ctrl+r”] , “caption”: “SublimeREPL: Python - RUN current file”, “command”: “run_existing_window
2016-11-08 15:26:11 6006
原创 How to write Chinese report using R Markdown
Tell you how to write Chinese report using R markdown.
2016-06-16 03:35:55 1008
原创 [Exploratory Data Analysis] Project 1
Project summaryReview criteriaLoading the dataMaking PlotsCodeProject summaryThis assignment uses data from the UC Irvine Machine Learning Repository, a popular repository for machine learning dat
2016-04-01 06:21:31 6490
原创 [Exploratory Data Analysis] Week 1
Principles of analysis graphicsExploratory GraphicsPlottingBase Plotting SystemGraphics DeviesPrinciples of analysis graphicsPrinciple 1: Show corparisons Evidence for a pyhothesis is always rel
2016-04-01 06:20:19 1927
原创 [Putty] Running R and MATLAB in linux via putty
R command:nohup R CMD BATCH (your file) &MATLAB command:nohup matlab <file.m> file.out&
2016-03-29 02:04:31 639
原创 [R and Matlab] Add or delete multi-line comments
For R, use Ctrl+Shift+C to add and delete multi-line comments.For MATLAB, us Ctrl+R to add multi-line comments and Ctrl+T to delete multi-line comments.
2016-03-23 04:02:54 519
原创 [Matlab] Changing Language
If you want to reset your interface language to English, you just need to go to the folder you install MATLAB: X:\MATLAB\R2014a\java\jar. And rename the folder “zh_CN” to any name you want, because thi
2016-03-23 02:02:26 811
原创 [R] ADMM for lasso
This is a short code for studying admm for lasso.#--------------------------- functions to be used ----------------------## the main function f = g + hf <- function(x, A, b, lambda){ 1/2*norm(
2016-03-22 04:40:20 3678
原创 [R] Proximal Gradient Descend for Lasso
This is a short code for studying proximal gradient descent algorithm.#--------------------------- functions to be used ----------------------## the main function f = g + hf <- function(x, A, b, lambd
2016-03-21 22:50:42 2414 1
原创 [Getting and Cleaning data] Project
Project introductionProject codeMore details can be found here.Project introductionThe purpose of this project is to demonstrate your ability to collect, work with, and clean a data set.Review criter
2016-03-18 06:12:08 3339
转载 [git] Basic Git Command Line Reference for Windows Users
Another useful blog for introducing git commands can be found here.
2016-03-18 06:07:08 519
原创 [git] git Process
Edit file from githubCreate a new repository in github using the “+” sign on the top right of your screen.Use git clone https://github.com/... to clone the repository to your computer.Edit your file.
2016-03-18 06:04:09 563
原创 [Getting and Cleaning data] swirl
Manipulating Data with dplyr PackageGrouping and Chaining with dplyr packageTidying Data with tidyr packageType one column headers are values not variable namesType two multiple variables are stored
2016-03-17 23:41:21 2330
原创 [Getting and Cleaning data] Quiz 4
Question 1Question 2Question 3Question 4Question 5More details can be found in the html file here.Question 1The American Community Survey distributes downloadable data about United States communit
2016-03-17 23:23:36 3298
原创 [Getting and Cleaning data] Quiz 3
Question 1Question 2Question 3Question 4Question 5More details can be found in the html file here.Question 1The American Community Survey distributes downloadable data about United States communit
2016-03-17 23:21:17 1679
原创 [Getting and Cleaning data] Week 4
Week 4Editing text variablesRegular expressionsWorking with datesMore details could be found in the html file here Week 4Editing text variablesImportant points about text in data setNames of variab
2016-03-17 09:25:19 981
原创 [Getting and Cleaning data] Week 3
Week 3Subsetting and SortingSummarizing dataCreating new variablesReshaping dataManaging data frame with dplyr package IntroductionManaging data frames with dplyr package Basic toolsMerging da
2016-03-15 03:16:25 1155
原创 [Getting and Cleaning data] Quiz 2
Question 1Question 2Question 3Question 4Question 5For more detail, see the html file here.Question 1Register an application with the Github API here github application. Access the API to get info
2016-03-14 11:52:43 4948 1
原创 [Getting and Cleaning data] Week 2
[TOC] For more detail, see the html file here[http://download.csdn.net/detail/comeyan/9460707].Week 2Reading data from MySQLWhat is MySQL? SQL is short for Structured Query Language and MySQL is the w
2016-03-14 11:44:47 852
原创 [Getting and Cleaning data] Quiz 1
Quiz 1Question 1QUestion 2Question 3Question 4Question 5For more detail, you can download the html file here.Quiz 1Question 1The American Community Survey distributes downloadable data about Unit
2016-03-14 01:16:51 2360
原创 [Getting and Cleaning data] Week 1
Week 1This course is following thatRaw data →\rightarrow Processing script →\rightarrow Tidy data →\rightarrow Data analysis →\rightarrow Data communicationRaw Data VS Processed Data:Raw DataThe ori
2016-03-13 23:18:40 1324
转载 [R] How to install RMySQL package on Window
一 Installing RMySQL package under Window二 Playing with RMySQL一. Installing RMySQL package under WindowThis section is from the instruction given in the following website http://www.ahschulz.de/2013/
2016-03-09 04:13:10 938
转载 Git使用教程
一Git是什么二SVN与Git的最主要的区别三在windows上如何安装Git四如何操作创建版本库版本回退理解工作区与暂存区的区别Git撤销修改和删除文件操作远程仓库创建与合并分支bug分支多人协作一:Git是什么?Git是目前世界上最先进的分布式版本控制系统。二:SVN与Git的最主要的区别?SVN是集中式版本控制系统,版本库是集中放在中央服务器的,而干活的时候,用的都是自己
2016-03-04 04:55:49 393
转载 How to use optim in R
A friend of mine asked me the other day how she could use the function optim in R to fit data. Of course there are built in functions for fitting data in R and I wrote about this earlier. However, she
2016-03-03 04:55:44 1151
原创 [Help] Proximal mapping
Properties of Proximal mapping1 L1 Lipschitz and monotone2 Projection Property3 Scaling and translation argument1. Properties of Proximal mappingFor a convex function h(x)h(x), its proximal mapping
2016-02-18 03:02:18 1987
原创 [first order method] Proximal Gradient Descent
Proximal gradient descentExampleProperties of Proximal mapping1 Proximal gradient descentUnconstrained Problem with cost function split into two components. minf(x)=g(x)+h(x)\min f(x)=g(x)+h(x) whe
2016-02-07 06:25:09 2227
原创 Fantope Projection and Selection: A near-optimal convex relaxation of sparse PCA
GoalTheorey1 How to get their formulation2 ConsistencyAlgorithm1. GoalThis paper mainly deals with Sparse Principal Component Analysis(PCA) using subspace method.2. Theorey2.1 How to get their form
2016-01-27 04:54:41 1545
原创 [Latex] natbib package to cite references
OverviewLoadingBasic commandsMultiple citationsNumerical modePartial citationsForcing upper cased namesSelecting citation style and punctuationOther formatting optionsAutomatic indexing of cit
2016-01-26 12:52:18 2608
原创 [Latex] font size
C-ETranslate E to C1. C-E 初号 小初 一号 小一 二号 小二 三号 小三 42pt 36pt 26pt 24pt 22pt 18pt 16pt 15pt 四号 小四 五号 小五 六号 小六 七号 八号 14pt 12pt 10.5pt 9pt 7.5pt 6.
2016-01-26 12:19:52 2047
原创 [R] foreach package
foreach packageExamples1. foreach packageThe foreach package provides a new looping construct for executing R code repeatedly. The main reason for using the foreach package is that it supports paralle
2016-01-22 01:19:46 1415
[Getting and Cleaning data] swirl
2016-03-17
[Getting and Cleaning data] Quiz 4
2016-03-17
[Getting and Cleaning data] Quiz 3
2016-03-17
[Getting and Cleaning data] Week 4
2016-03-17
[Getting and Cleaning data] Week 3
2016-03-15
[Getting and Cleaning data] Quiz 2
2016-03-14
[Getting and Cleaning data] Week 2
2016-03-14
[Getting and Cleaning data] Quiz 1
2016-03-14
[Getting and Cleaning data] Week 1
2016-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人