笔记 2 数据科学家工具箱
- CLT
- name of root is represented by a slash: /
- home directory is represented by a tilde: ~
- pwd print working directory
- recipe: command -flags arguments
- clear: clear out the commands in your current CLI window
ls lists files and folders in the current directory
-a lists hidden and unhidden files and folders
-al lists details for hidden and unhidden files and folders
cd stands for “change directory”
cd takes as an argument the directory you want to visit
cd with no argument takes you to your home directory
cd .. allows you to chnage directory to one level above your current directory
- mkdir stands for “make directory”
- touch creates an empty file
cp stands for “copy”
cp takes as its first argument a file, and as its second argument the path to where you want the file to be copied
cp can also be used for copying the contents of directories, but you must use the -r flag
rm stands for “remove”
use rm to delete entire directories and their contents by using the -r flag
mv stands for “move”
move files between directories
use mv to rename files
- echo will print whatever arguments you provide
- date will print today’s date
git
$ git config --global user.name "Your Name Here" # 输入用户名
$ git config --global user.email "your_email@example.com" # 输入邮箱
$ git config --list # 检查
$ git init # 初始化目录
$ git add . # 添加新文件
$ git add -u # 更新改名或删除的文件
$ git add -A|git add --all # 添加所有改动
$ git commit -m "your message goes here" # 描述并缓存本地工作区改动到上一次commit
$ git log # 查看commit记录 用Q退出
$ git status # 查看状态
$ git remote add # 添加服务器端地址
$ git remote -v # 查看远端状态
$ git push # 将本地commit推送到github服务器端
$ git pull|fetch|merge|clone # 本地获取远端repo
$ exit # 退出
- Git = Local (on your computer); GitHub = Remote (on the web)
- 基本问题
- 描述分析:对数据进行描述但不解释
- 探索分析:寻找未知的变量间关系 (相关不代表因果)
- 推断分析:用小样本推断总体 统计模型的目标 强依赖采样过程
- 预测分析:用一组变量预测另一变量 不一定有因果关系
- 因果分析:改变一个变量引发另一个变量变化的分析 随机实验 平均效果
- 机理分析:对个体改变一个变量所导致另一个变量的精确变化 公式模拟与参数拟合
- 数据次于问题
- 大数据依赖科学而不是数据
- 实验设计 重视可重复性随机与分组 预测与推断不同 不要选数据