本篇文章将从贝叶斯公式出发,探究贝叶斯到底是啥,以及其在认知层面的巨大作用。不过据说每出现 1 个公式,文章阅读将下降 1/3。 华为大佬说:人工智能就是统计学。在我眼中,贝叶斯公式就是统计学走向机器学习的起点。 贝叶斯公式 贝叶斯定理(Bayes’s Rule):如果有k个相互独立事件 A1,A2 ...
分类:
其他好文 时间:
2020-06-03 20:08:55
阅读次数:
57
# @ Author : Collin_PXY # 正则表达式: import re # 1,分步写法: # 1)rule.search(string) pattern='各小区' rule=re.compile(pattern) tel=rule.search(string) # 返回第一个匹配的 ...
分类:
编程语言 时间:
2020-06-02 23:09:30
阅读次数:
109
export default { data() { return { form: { code: "", name: "", enable: true }, rules: { code: [ { required: true, validator: (rule, value, callback) = ...
分类:
其他好文 时间:
2020-05-28 16:15:13
阅读次数:
218
一、应用pandas # coding=utf-8 import pandas as pd from pandas import DataFrame, Series import re def rule(item_str): """ 对内容的规则 :param item_str: str :retu ...
分类:
其他好文 时间:
2020-05-22 19:17:08
阅读次数:
48
上篇讲的是async-validator的基本要素,那么,如何使用到Element中以及怎样优雅地使用,就在本篇。 上篇讲到async-validator由3大部分组成 Options Validate Rules 基本验证流程如下 先按照rule的规则,制定每个字段的规范,生成rules 根据ru ...
分类:
其他好文 时间:
2020-05-17 16:16:19
阅读次数:
63
namespace app\index\validate; use think\Validate; class User extends Validate { protected $rule = [ 'name' => 'require|max:25', 'email' => 'email', ]; ...
分类:
其他好文 时间:
2020-05-13 12:17:41
阅读次数:
81
1、告警逻辑框架 Prometheus的告警逻辑框架: 1)指标获取:Prometheus从监控目标中获取指标数据; 2)设置规则:运维人员根据运维管理需要,设置告警规则(rule_files); 3)推送告警:在Pometheus中指定指定告警规则,并设置告警服务器(prometheus.yml) ...
分类:
Web程序 时间:
2020-05-12 17:15:23
阅读次数:
80
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2020-05-11 23:31:41
阅读次数:
66
partition($data, $field, $rule); // $data 分表字段的数据 // $field 分表字段的名称 // $rule 分表规则 // 用于写入 $data = [ 'user_id' => 110, 'user_name' => 'think' ]; $rule ...
分类:
数据库 时间:
2020-05-11 13:13:47
阅读次数:
67
In a sequence of numbers,we can find some number pairs that conform to the rule below: Assuming that there exist two numbers,N and M and it's position ...
分类:
其他好文 时间:
2020-05-02 18:46:09
阅读次数:
60