上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: Graph tf.graph在TensorFlow中主要用于性能优化。我们用TensorFlow写代码时可以通过python的内部机制进行计算,这种操作称为Eagerly。而Graph操作会运用TensorFlow所内含的数据计算模块,相比之下更有效率。 Graph是用于tf.Operation操作 阅读全文
posted @ 2022-05-12 21:46 Asp1rant 阅读(220) 评论(0) 推荐(0)
摘要: sklearn.compose.ColumnTransformer可以用来构建一个数据转换器,用允许单独转换输入的不同列或列子集,并且每个转换器生成的特征将串联起来以形成单个特征空间。这对于异构或列式数据非常有用,可以将多个特征提取机制或转换组合到单个转换器中。 配合sklearn.pipeline 阅读全文
posted @ 2022-05-07 17:25 Asp1rant 阅读(538) 评论(0) 推荐(0)
摘要: 本章学习TensorFlow中的自动微分: https://tensorflow.google.cn/guide/autodiff 自动微分的含义 参考: https://zhuanlan.zhihu.com/p/61103504 https://en.wikipedia.org/wiki/Auto 阅读全文
posted @ 2022-05-05 19:52 Asp1rant 阅读(345) 评论(0) 推荐(0)
摘要: Tensor和Variable都是TensorFlow框架中的基本数据单元,本文详细介绍两者的用法。 参考: https://tensorflow.google.cn/guide/tensor https://tensorflow.google.cn/guide/variable Tensor 基础 阅读全文
posted @ 2022-05-01 17:58 Asp1rant 阅读(443) 评论(0) 推荐(0)
摘要: 下面介绍如何将Python Notebook (.ipynb)转换成Markdown文件(.md) 首先安装nbconvert: pip install nbconvert 然后cd到文件的目录下,用下命令: jupyter nbconvert --to markdown **.ipynb 阅读全文
posted @ 2022-05-01 15:31 Asp1rant 阅读(227) 评论(0) 推荐(0)
摘要: 开始学习TensorFlow:https://www.tensorflow.org/tutorials TensorFlow的官网上有Tutorial和Guide两部分教程,Guide主要介绍一些概念性的东西,Tutorial则更加通过实例来介绍TensorFlow的使用。 本篇介绍TensorFl 阅读全文
posted @ 2022-04-28 19:41 Asp1rant 阅读(317) 评论(0) 推荐(0)
摘要: 本文介绍MLP(Multi-Layer Perception的理论以及实践) 参考: https://zhuanlan.zhihu.com/p/63184325 https://en.wikipedia.org/wiki/Multilayer_perceptron 一. 理论 MLP是最基本的神经网 阅读全文
posted @ 2022-04-18 20:09 Asp1rant 阅读(2069) 评论(0) 推荐(0)
摘要: 本文介绍一些模型中常用的评价模型准确性的指标 参考: Various ways to evaluate a machine learning model’s performance Evaluation Criteria for Machine Learning Models 本文针对回归问题和分类 阅读全文
posted @ 2022-04-11 20:25 Asp1rant 阅读(390) 评论(0) 推荐(0)
摘要: LightGBM是微软旗下的Boost学习算法,在Xgboost的基础上做了更多方面的优化。 理论 此部分主要介绍LightGBM做了哪些优化,此部分参考:https://zhuanlan.zhihu.com/p/99069186: 为了避免XGBoost的缺陷,并且能够在不损害准确率的条件下加快G 阅读全文
posted @ 2022-04-09 17:39 Asp1rant 阅读(421) 评论(0) 推荐(0)
摘要: 偏度和峰度是数据处理中常用的用来分析数据分布程度的指标,Pandas中提供了这两个函数。 skew 偏度 偏度(skew),是统计数据分布偏斜方向和程度的度量,是统计数据分布非对称程度的数字特征。偏度(Skewness)亦称偏态、偏态系数。表征概率分布密度曲线相对于平均值不对称程度的特征数。直观看来 阅读全文
posted @ 2022-04-07 21:01 Asp1rant 阅读(2665) 评论(0) 推荐(0)
摘要: XGBoost是一种基于Boost算法的机器学习方法,全称EXtreme Gradient Boosting。 XGBoost在GBDT的基础上,引入了: CART回归树 正则项 泰勒公式二阶导数 Blocks数据结构(用于加速运算) 从而实现了比GBDT更好的实现效果。 一. 理论 关于XGBoo 阅读全文
posted @ 2022-04-02 17:53 Asp1rant 阅读(1479) 评论(0) 推荐(1)
摘要: 本文将介绍机器学习中比较基础的两种Boost方法 — AdaBoost 和 GBDT AdaBoost 简介 Boosting, 也称为增强学习或提升法,是一种重要的集成学习技术, 能够将预测精度仅比随机猜度略高的弱学习器增强为预测精度高的强学习器,这在直接构造强学习器非常困难的情况下,为学习算法的 阅读全文
posted @ 2022-03-28 21:18 Asp1rant 阅读(518) 评论(0) 推荐(0)
摘要: 转载自:https://zhuanlan.zhihu.com/p/297923315 Symbol是什么? symbol是 ES6 新增的一种基本数据类型,它和 number、string、boolean、undefined 和 null 是同类型的,object 是引用类型。它用来表示独一无二的值 阅读全文
posted @ 2022-03-18 17:03 Asp1rant 阅读(309) 评论(0) 推荐(0)
摘要: 本文介绍如何针对特征工程中的字符串数据进行编码 转载自:https://zhuanlan.zhihu.com/p/42075740 1 为什么要进行特征编码? 我们拿到的数据通常比较脏乱,可能会带有各种非数字特殊符号,比如中文。下面这个表中显示了我们最原始的数据集。而实际上机器学习模型需要的数据是数 阅读全文
posted @ 2022-03-10 16:55 Asp1rant 阅读(296) 评论(0) 推荐(0)
摘要: 本篇介绍机器学习中常用的随机森林算法还有其常用的延申算法Extra Tree以及实例 参考: https://zhuanlan.zhihu.com/p/380323376 https://zhuanlan.zhihu.com/p/57965634 https://scikit-learn.org/s 阅读全文
posted @ 2022-03-03 16:24 Asp1rant 阅读(1629) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 13 下一页