面试题
1.数据库
1. mysql创建表
create table 表名(
字段名 char(10) not null,
字段名 …)
数据类型 int char datetime text decimal[精准数据类型]
decimal(8,2) : 一共8位数字,6位整数,2位小数
create table Customers(
cust_id char(10) not null,
cust_name char(50) not null,
cust_address char(50) null,
cust_city char(50) null,
cust_state char(50) null,
cust_zip char(10) null,
cust_country char(50) null,
cust_contact char(50) null,
cust_email char(255) null
);
2.主键 外键 约束 索引 视图
主键:表中每一行数据的唯一标识 一个表只能有一个主键,不可为空
外键:连接两个表关系的一列或多列,一个表的外键是另一个表的主键
索引:为了检索方便以一定规则创建,唯一
视图:虚拟表,不真实存在,由查询语句创建,简化用户操作,可以查询视图中的数据,视图数据可以更改?
从数据库查询一些数据,用于机器学习训练,有时中间用redis缓存数据,直接存取
3. redis mongoDB
4.sql调优
2.python
1.读取json字符串
2.pandas numpy处理
常用函数
pandas
1.常用函数
2.拼接文件
3.多维向量
3.机器学习
1.贝叶斯
优点:
缺点:
前提:特征独立分布
数据符合正态分布
算法:
2.聚类算法
3.决策树
4.可视化
tableau