前言:
<<line>> 表明在vertica 8.0文档中的title
正文:
1-支持平台
1.1-操作系统
<<Vertica Server and Vertica Management Console>>
When there are multiple minor versions supported for a major operating system release, Hewlett Packard Enterprise recommends that you run Vertica on the latest minor version listed in the supported versions list. For example, if you run Vertica on a Red Hat Enterprise Linux 6.x release, Hewlett Packard Enterprise recommends you upgrade to or be running the latest supported RHEL 6.x release, which is 6.8.
官方推荐rhel6.8或centos6.8版本
1.2- 文件系统
Vertica Analytic Database Enterprise Edition has been tested on all supported Linux platforms running the ext4 file system. For the Vertica Analytic Database I/O profile, the ext4 file system is considerably faster than ext3.
官方推荐ext4方式,不要使用LVM
1.3-hadoop支持
<<Vertica Integrations for Hadoop>>
支持CDH 5.6-5.8,其中5.6逐渐不再支持
1.4-kafka支持
<<Vertica Integration for Apache Kafka>>
支持Kafka 0.8.x-0.9,其中0.8.x逐渐不再支持
1.5-java/R支持
jdk 1.6-1.8
R语言3.0
2-新特性-
2.1-机器学习的资源池单独设置
<<New Resource Pool for BLOBDATA>>
blobdata资源池的设置
2.2-异常值检测
outliner过程
<<DETECT_OUTLIERS>>
基于标准差(待定是不是标准差)来筛选数据
If data point > ( value * STDDEV( data ) ) then data point is an outlier.
dbadmin=> SELECT * FROM baseball_roster;
id | last_name | hr | avg
----+-----------+--------+--------
1 | Polo | 7 | 0.233
2 | Gloss | 45 | 0.17
3 | Gus | 12 | 0.345
4 | Gee | 1 | 0.125
5 | Laus | 3 | 0.095
6 | Hilltop | 16 | 0.222
7 | Wicker | 78 | 0.333
8 | Scooter | 0 | 0.121
9 | Hank | 999999 | 0.8888
10 | Popup | 35 | 0.378
(10 rows)
dbadmin=> SELECT * FROM baseball_outliers;
id | last_name | hr | avg
----+-----------+--------+--------
7 | Wicker | 78 | 0.333
9 | Hank | 999999 | 0.8888
(2 rows)
2.3-机器学习相关
2.3.1-期初导入
<<Downloading the Machine Learning Example Data>>
yum install git
vsql -d dbname -f load_ml_data.sql
2.3.2-训练模型
<<NAIVE_BAYES>>
#训练基础表,党派人士的投票倾向
select * from public.house84_train;
#训练model//训练基础表//要预测哪一列//基于那些数据来预测//排除非数据列
SELECT NAIVE_BAYES
('naive_house84_model', 'house84_train', 'party', '*','--exclude_columns="party, id"');
2.3.3-验证模型
<<Classifying Data Using Naive Bayes>>
SELECT SUMMARIZE_MODEL('naive_house84_model', 'dbadmin');
基于模型来检验是民主党还是共和党
CREATE TABLE predicted_party_naive
AS SELECT party,
PREDICT_NAIVE_BAYES (vote1, vote2, vote3, vote4, vote5,
vote6, vote7, vote8, vote9, vote10, vote11, vote12, vote13, vote14,vote15, vote16
USING PARAMETERS model_name = 'naive_house84_model',owner = 'dbadmin',type = 'response') AS Predicted_Party
FROM house84_test;
每个预测的可能性百分比
SELECT PREDICT_NAIVE_BAYES_CLASSES (id, vote1, vote2, vote3, vote4, vote5,
vote6, vote7, vote8, vote9, vote10,
vote11, vote12, vote13, vote14,
vote15, vote16
USING PARAMETERS model_name = 'naive_house84_model',
owner = 'dbadmin',
key_columns = 'id', exclude_columns = 'id',
classes = 'democrat, republican')
OVER() FROM house84_test;
基于训练集的前三个vote,来预测党派
SELECT party, PREDICT_NAIVE_BAYES (vote1, vote2, vote3
USING PARAMETERS model_name = 'naive_house84_model',
owner = 'dbadmin',
type = 'response') AS Predicted_Party
FROM house84_test;
- 浅谈Tuple之C#4.0新特性那些事儿你还记得多少?
来源:微信公众号CodeL 今天给大家分享的内容基于前几天收到的一条留言信息,留言内容是这样的: 看了这位网友的留言相信有不少刚接触开发的童鞋们也会有同样的困惑,除了用新建类作为桥梁之外还有什么好的办 ...
- Java基础和JDK5.0新特性
Java基础 JDK5.0新特性 PS: JDK:Java Development KitsJRE: Java Runtime EvironmentJRE = JVM + ClassLibary JV ...
- Visual Studio 2015速递(1)——C#6.0新特性怎么用
系列文章 Visual Studio 2015速递(1)——C#6.0新特性怎么用 Visual Studio 2015速递(2)——提升效率和质量(VS2015核心竞争力) Visual Studi ...
- atitit.Servlet2.5 Servlet 3.0 新特性 jsp2.0 jsp2.1 jsp2.2新特性
atitit.Servlet2.5 Servlet 3.0 新特性 jsp2.0 jsp2.1 jsp2.2新特性 1.1. Servlet和JSP规范版本对应关系:1 1.2. Servlet2 ...
- 背水一战 Windows 10 (1) - C# 6.0 新特性
[源码下载] 背水一战 Windows 10 (1) - C# 6.0 新特性 作者:webabcd 介绍背水一战 Windows 10 之 C# 6.0 新特性 介绍 C# 6.0 的新特性 示例1 ...
- C# 7.0 新特性2: 本地方法
本文参考Roslyn项目中的Issue:#259. 1. C# 7.0 新特性1: 基于Tuple的“多”返回值方法 2. C# 7.0 新特性2: 本地方法 3. C# 7.0 新特性3: 模式匹配 ...
- C# 7.0 新特性1: 基于Tuple的“多”返回值方法
本文基于Roslyn项目中的Issue:#347 展开讨论. 1. C# 7.0 新特性1: 基于Tuple的“多”返回值方法 2. C# 7.0 新特性2: 本地方法 3. C# 7.0 新特性3: ...
- C# 7.0 新特性3: 模式匹配
本文参考Roslyn项目Issue:#206,及Docs:#patterns. 1. C# 7.0 新特性1: 基于Tuple的“多”返回值方法 2. C# 7.0 新特性2: 本地方法 3. C# ...
- C# 7.0 新特性4: 返回引用
本文参考Roslyn项目中的Issue:#118. 1. C# 7.0 新特性1: 基于Tuple的“多”返回值方法 2. C# 7.0 新特性2: 本地方法 3. C# 7.0 新特性3: 模式匹配 ...
随机推荐
- mock测试到底是什么?
经常听人说mock测试,究竟什么是mock测试呢?mock测试能解决什么问题?mock测试要如何做呢?今天为大家做简单介绍,之后会有详细的mock测试,感谢大家对测试梦工厂的持续关注. 概 ...
- Assembler : The Basics In Reversing
Assembler : The Basics In Reversing Indeed: the basics!! This is all far from complete but covers ab ...
- 【python】pickle模块
持久性的基本思想很简单.假定有一个 Python 程序,它可能是一个管理日常待办事项的程序,您希望在多次执行这个程序之间可以保存应用程序对象(待办事项).换句话说,您希望将对象存储在磁盘上,便于以后检 ...
- python---map,filter,reduce
map 遍历序列,对序列中每个元素进行操作,最终获取新的序列. li = [11, 22, 33] new_list = map(lambda a: a + 100, li) #new_list = ...
- OAF_开发系列22_实现OAF条形码BarCode
20150717 Created By BaoXinjian
- OAF_开发系列09_实现OAF预提取LOV设定(案例)
20150712 Created By BaoXinjian
- mongodb配置文件
启动MongoDB有2种方式,一是直接指定配置参数,二是指定配置文件.这里先介绍配置文件,启动方式如下: 1.mongod --config /etc/mongodb.conf 配置如下: verbo ...
- python(29)强大的zip函数
zip函数:它是python的内建函数,(与序列有关的内建函数有:sorted().reversed().enumerate().zip()),其中sorted()和zip()返回一个序列(列表)对象 ...
- things to analysis
Started by timer [EnvInject] - Loading node environment variables. Building remotely on RE_DEV_BUILD ...
- 由于C++编译器的分析机制所导致的声明问题
假设我们想声明一个STL的vector类型的变量,读入文件里的信息: std::ifstream in("data.txt"); std::vector<int> da ...