scikit keras

Welcome all! In the first episode of this series, I investigated the four most known machine learning frameworks and discussed which of these you should learn depending on your needs and goals.

w ^迎阅读所有! 在本系列的第一集中 ,我研究了四种最著名的机器学习框架,并讨论了根据您的需求和目标应该学习的机器学习框架。

Of course, we all know how PyTorch and TensorFlow are overwhelmingly effective and thorough when it comes to building deep learning algorithms from scratch. Similarly, Scikit-learn comes with excellent non-neural solutions and a whole lot of convenient data processing and evaluation functions.

当然,当我们从头开始构建深度学习算法时,我们都知道PyTorch和TensorFlow如何具有压倒性的优势和全面性。 同样, Scikit-learn具有出色的非神经解决方案以及大量便捷的数据处理和评估功能。

Today, I would like to draw your attention to something different: a rising machine learning framework, Libra, that absolutely deserves your attention and has tripled its amount of GitHub stars in only a week (reaching 1.8K)!

今天,我想提请您注意一些不同的东西:新兴的机器学习框架Libra绝对值得您的注意,并且在短短一周内将GitHub star的数量增加了两倍(达到1.8K)!

In this article, I will cover:

在本文中,我将介绍:

  1. The basic concept of the framework

    框架的基本概念

  2. The interesting features I spotted

    我发现的有趣功能

  3. The expected downsides

    预期的缺点

  4. A concrete use example

    具体的使用示例

https://libradocs.github.io/https://libradocs.github.io/

一,基本概念 (I. Base Concept)

Libra is an easy-to-use machine learning framework that will allow you to load data, process it, train models and visualize results with only a few lines of code.

Libra是一个易于使用的机器学习框架,使您仅需几行代码即可加载数据,处理数据,训练模型并可视化结果。

The major advantage of this framework is its user-friendliness and beginner-friendliness. The diagram below shows about how fast you can setup an ML project compared to more common frameworks:

这个框架的主要优点是它的用户友好性初学者友好性 。 下图显示了与更常见的框架相比,您可以更快地设置ML项目:

https://libradocs.github.io/https://libradocs.github.io/

This literally means that you can come with no or nearly no technical machine learning knowledge and implement a full project in about 5 minutes.

从字面上看,这意味着您可能没有或几乎没有任何机器学习知识,而仅需5分钟即可实现一个完整的项目。

The library is built for Python (⩾3.6) and revolves around a Client object that will handle your data but also the models you want to build, inference, plotting, etc.

该库是为Python(⩾3.6)构建的,围绕一个Client对象运行,该对象不仅可以处理数据,还可以处理要构建,推断,绘制等的模型。

You can easily install and initialize the library in a project with only lines of code: first, you need to install Libra and all the dependencies in your environment with pip install libra. Next, simply write from libra import client in a Python file and you’re all set!

您只需使用几行代码即可轻松地在项目中安装和初始化该库:首先,您需要使用pip install libra安装Libra以及环境中的所有依赖项。 接下来,只需from libra import client编写一个Python文件即可,一切就绪!

二。 有趣的功能 (II. Interesting Features)

Photo by Tim Mossholder on Unsplash
Tim Mossholder在Unsplash上拍摄的照片

The first interesting feature I noticed is that some “queries” try to infer what is asked of them: for example, if you call a neural_network_query(), the only required argument is a quick explanation of what you want to do, like “please model the median number of households”.

我注意到的第一个有趣的功能是一些“查询” 尝试推断出他们的要求 :例如,如果您调用Neuro_network_query() ,则唯一需要的参数是对您想做什么的快速说明,例如“请模拟住户中位数”。

The target variable in your data will then be determined through the parsing of your explanation and computing the levenshtein distance on the column names.

然后,将通过解析您的解释并计算列名上的levenshtein区别来确定数据中的目标变量。

Kind of cool, right?

有点酷吧?

Moreover, you can simply load your .csv data file and it will automatically be handled in a Pandas DataFrame and preprocessed for you during the query, which is convenient if you want fast results!

此外,您只需加载.csv数据文件,它将在Pandas DataFrame中自动处理并在查询过程中为您进行预处理,如果您想要快速的结果,这将非常方便!

The fact that Libra relies on other machine learning libraries means that all ML tasks are virtually doable. Here is a list of the currently available queries, and includes Feedforward NN, CNN, SVM, Text generation, Sentiment analysis, etc.

Libra依赖于其他机器学习库这一事实意味着所有ML任务实际上都是可行的。 这是当前可用查询的列表,包括前馈NN,CNN,SVM,文本生成,情感分析等。

When you fine tune a model in with the Libra client, the evaluation results and plots are automatically displayed for you. Here is an example where I tried to predict sentiment scores of tweets from this Kaggle dataset using a simple neural network:

当您使用Libra客户端微调模型时,评估结果和图将自动为您显示。 这是一个示例,我尝试使用简单的神经网络从该Kaggle数据集中预测推文的情感评分:

The project is growing pretty fast and even though the core development has been done, you can put your skills to use and contribute by adding missing bits of code and correcting bugs!

该项目正在Swift发展,即使完成了核心开发,您也可以通过添加缺少的代码并更正错误来利用和贡献自己的技能!

三, 缺点 (III. Downsides)

Photo by Bernard Hermant on Unsplash
照片由Bernard Hermant在Unsplash上拍摄

The major downside you will experience with an ML framework that is so beginner-friendly is process over-simplification: by providing such high-level wrapping techniques, you sort of lose the sense of control over what is happening.

ML框架对初学者非常友好,这将给您带来的主要缺点是过分简化了流程 :通过提供这种高级包装技术,您会失去对正在发生的事情的控制感。

For example, when using the “neural network query”, the number of distinct target variables in your data will determine if a classification or regression task will be performed, and you will not have a choice in the neural net’s architecture details.

例如,当使用“神经网络查询”时,数据中不同目标变量的数量将确定是否要执行分类或回归任务,并且您将无法选择神经网络的体系结构详细信息。

As of today (August 2020), Libra is still being developed by the creators and the community, meaning that a lot of bugs appear here and there, which can be discouraging at first.

截至今天(2020年8月),天秤座仍由创作者和社区开发,这意味着到处都会出现许多错误 ,一开始可能会令人沮丧。

Even though Libra is a relatively new machine learning framework, it hasn’t (yet) re-invented the wheel, and relies on popular libraries like Keras, Transformers, Scikit-learn and NLTK. This mainly means that the number of hard dependencies is quite high, and can be an issue if you like to keep a light environment.

尽管Libra是一个相对较新的机器学习框架,但它(尚未)重新发明轮子,而是依赖于Keras,Transformers,Scikit-learn和NLTK等流行的库。 这主要意味着硬依赖性的数量非常高 ,如果您希望保持一个轻量级的环境,则可能会成为一个问题。

IV。 简单项目示例 (IV. Simple Project Example)

To show you how easy and fun it is to use Libra, let’s implement a small project together: based on the beginning of J.R.R Tolkien’s Silmarillion, we will generate new text with only 3 lines of code.

为了向您展示使用Libra是多么容易和有趣,让我们一起实现一个小项目:基于JRR Tolkien的Silmarillion的开头,我们将只用3行代码生成新文本

from libra import clienttolkien_client = client('silma_beg.txt')
tolkien_client.generate_text("generate some text please", return_sequences=1)
print(tolkien_client.models['text_generation']['generated_text'])

Libra will load GPT-2 from OpenAI and generate new text for us.

天秤座将从OpenAI加载GPT-2并为我们生成新文本。

In the following Gist, the first line is actually the input file I fed the network with. All the rest was automatically output by the model, and it’s pretty amazing!

在下面的要点中,第一行实际上是我为网络提供的输入文件。 其余的全部由模型自动输出,这真是太神奇了!

There was Eru, the One, who in Arda is called Ilúvatar; and he made first the Ainur, the Holy Ones, that were the offspring of his thought, and they were with him before aught else was made. And he spoke to them, propounding to them themes of music; and they sang before him, and he was glad. But for a long while they sang only each alone, or but few together, while the rest hearkened; for each comprehended only that part of me mind of Ilúvatar from which he came, and in the understanding of their brethren they grew but slowly. Yet ever as they listened they came to deeper understanding, and increased in unison and harmony. And the time came when they saw that, at last, by the love which the people gave her, there had been a way of getting over her by the love of her Creator. And they arose from their hiding place, and sought the land in the wilderness, and there they were put to the slaughter, for they were of the blood of the sons of Ilúvatar, and it was not easy to get over them. For those who had been left by their parents, as it were, had come to know the true nature of what they had done, and to believe that they had done what had been done, and that they had found the love of the Holy Ones; but Ilúvatar said to the other:Thy sons are born of the Father, and thou shalt have their hearts at my feet, and thou shalt have my prayers to thee in the heavens.And the angels said to Ilúvatar:Father, take these people, O Ilúvatar; make them come back.And Ilúvatar said unto them:Thou are worthy, O Ilúvatar, of these sons.And when they were come back to their hiding place, they were put to the slaughter; for they had seen that their father was not in the way of righteousness, but rather from a power of the Holy One, whom they saw the sons of Ilúvatar.And the angels, then, said unto Ilúvatar:The love of God, Ilúvatar, is strong and great; and thou shalt be glad, O Ilúvatar, if thou hast the Holy One with you. For there are few who ever have been so much as children, and

The model probably was pre-trained on the entire book, but the output grammar and generation relevance is nonetheless very good.

该模型可能已在整本书中进行了预训练,但是输出语法和生成相关性仍然非常好。

Photo by Alex Guillaume on Unsplash
Alex Guillaume在Unsplash上拍摄的照片

This is what Libra is about: creating with only a handful of lines of code. The opportunity to load, train, infer, evaluate and plot without prior extended knowledge.

这就是Libra的目的: 只用几行代码创建 。 在没有事先扩展知识的情况下进行加载,训练,推断,评估和绘图的机会。

I hope you have enjoyed this article, thank you very much for reading through and make sure to try out this framework when you get the chance!

我希望您喜欢这篇文章,非常感谢您通读,并确保在有机会的情况下尝试使用此框架!

翻译自: https://towardsdatascience.com/scikit-learn-tensorflow-pytorch-keras-but-what-about-libra-a5102c2d834d

scikit keras


http://www.taodudu.cc/news/show-997564.html

相关文章:

  • 数据结构两个月学完_这是我作为数据科学家两年来所学到的
  • 迈向数据科学的第一步:在Python中支持向量回归
  • 使用Python和MetaTrader在5分钟内开始构建您的交易策略
  • ipywidgets_未来价值和Ipywidgets
  • 用folium模块画地理图_使用Folium表示您的地理空间数据
  • python创建类统计属性_轻松创建统计数据的Python包
  • knn分类 knn_关于KNN的快速小课程
  • 机器学习集群_机器学习中的多合一集群技术在无监督学习中应该了解
  • 政府公开数据可视化_公开演讲如何帮助您设计更好的数据可视化
  • 消费者行为分析_消费者行为分析-是否点击广告?
  • 魅族mx5游戏模式小熊猫_您不知道的5大熊猫技巧
  • 数据科学中的数据可视化
  • 多重线性回归 多元线性回归_了解多元线性回归
  • 如何使用Python处理丢失的数据
  • 为什么印度盛产码农_印度农产品价格的时间序列分析
  • tukey检测_回到数据分析的未来:Tukey真空度的整洁实现
  • 到2025年将保持不变的热门流行技术
  • 马尔科夫链蒙特卡洛_蒙特卡洛·马可夫链
  • 数据分布策略_有效数据项目的三种策略
  • 密度聚类dbscan_DBSCAN —基于密度的聚类方法的演练
  • 从完整的新手到通过TensorFlow开发人员证书考试
  • 移动平均线ma分析_使用动态移动平均线构建交互式库存量和价格分析图
  • 静态变数和非静态变数_统计资料:了解变数
  • 不知道输入何时停止_知道何时停止
  • 掌握大数据数据分析师吗?_要掌握您的数据吗? 这就是为什么您应该关心元数据的原因...
  • 微信支付商业版 结算周期_了解商业周期
  • mfcc中的fft操作_简化音频数据:FFT,STFT和MFCC
  • r语言怎么以第二列绘制线图_用卫星图像绘制世界海岸线图-第二部分
  • rcp rapido_Rapido使用数据改善乘车调度
  • 飞机上的氧气面罩有什么用_第2部分—另一个面罩检测器……(

scikit keras_Scikit学习,TensorFlow,PyTorch,Keras…但是天秤座呢?相关推荐

  1. Hinton NIPS2017 手写识别实现 TensorFlow \ Pytorch \ Keras

    10月26日,深度学习元老Hinton的NIPS2017 Capsule论文<Dynamic Routing Between Capsules>终于在arxiv上发表.今天相关关于这篇论文 ...

  2. 深度学习-Tensorflow使用Keras进行模型训练

    tf.keras 是 tensorflow2 引入的高封装度的框架,可以用于快速搭建神经网络模型,keras 为支持快速实验而生,能够把想法迅速转换为结果,是深度学习框架之中最终易上手的一个,它提供了 ...

  3. 如何在anaconda环境下安装tensorflow/pytorch/keras等

    第一种方法:在conda 环境中安装 第一步:找到 Anaconda Navigator 第二步:打开,找到环境 点击creat(+)按钮,输入需要的环境,之后点击另外一个creat 安装其他的库步骤 ...

  4. scikit learn、tensorflow、keras区别

    参考:简书-刘敬:https://www.jianshu.com/p/0837b7c6ce10,感谢 一. 功能不同 Scikit-learn(sklearn)的定位是通用机器学习库 TensorFl ...

  5. 深度学习环境配置指南:Pytorch、TensorFlow、Keras

    点击上方"视学算法",选择加"星标"或"置顶" 重磅干货,第一时间送达 作者丨Yukyin@知乎 来源丨https://zhuanlan.z ...

  6. 2_初学者快速掌握主流深度学习框架Tensorflow、Keras、Pytorch学习代码(20181211)

    初学者快速掌握主流深度学习框架Tensorflow.Keras.Pytorch学习代码 一.TensorFlow 1.资源地址: 2.资源介绍: 3.配置环境: 4.资源目录: 二.Keras 1.资 ...

  7. DL框架:主流深度学习框架(TensorFlow/Pytorch/Caffe/Keras/CNTK/MXNet/Theano/PaddlePaddle)简介、多个方向比较、案例应用之详细攻略

    DL框架:主流深度学习框架(TensorFlow/Pytorch/Caffe/Keras/CNTK/MXNet/Theano/PaddlePaddle)简介.多个方向比较.案例应用之详细攻略 目录 深 ...

  8. 主流深度学习框架对比(TensorFlow、Keras、MXNet、PyTorch)

    近几年来,深度学习的研究和应用的热潮持续高涨,各种开源深度学习框架层出不穷,包括TensorFlow,Keras,MXNet,PyTorch,CNTK,Theano,Caffe,DeepLearnin ...

  9. 深度学习主流框架介绍(PyTorch、TensorFlow、Keras、Caffe、Theano、MXNET)

    深度学习主流框架介绍(PyTorch.TensorFlow.Keras.Caffe.Theano.MXNET) 1.Theano Theano是最早的深度学习框架之一,由 Yoshua Bengio ...

最新文章

  1. 【Qt】通过QtCreator源码学习Qt(十一):Utils::Icon,根据不同主题、不同状态变换图标
  2. Java并发设计模式--不可变模式(immutable)
  3. Android中绘制圆形和圆角图片
  4. oracle基本笔记整理及案例分析2
  5. pythonui自动化测试平台_django+appium实现UI自动化测试平台(开源部分,可定制开发)...
  6. 干货收藏!639页《深度学习:Deep Learning》图文并茂课程PPT
  7. PHP数组合并的常见问题
  8. python中文列名报错__mssql.MSSQLDatabaseException:(207,b“无效列名'Hello'。DBLib错误消息20018...
  9. python的设计模式
  10. 单龙芯3A3000-7A1000PMON研究学习-(25)撸起袖子干-再来一杯代码7
  11. python列表的事例_python列表使用实例
  12. VeiwPager、Gallery、ViewFlipper区别
  13. x64dbg调试器使用
  14. 蓝牙技术|蓝牙助力智能手表的未来发展
  15. 王家族字辈(我的家族字辈)
  16. python中省略号三个点(...)的作用
  17. 【论文泛读62】HybridQA:通过表格和文本数据进行多跳问答的数据集
  18. 1. 无线纳米传感器网络和纳米物联网络:背景、架构、特征
  19. C# dateTime类型之subTract用法
  20. 【主动投资组合管理】第1章 绪论

热门文章

  1. ListView与.FindControl()方法的简单练习 #2 -- ItemUpdting事件中抓取「修改后」的值
  2. HDU 3966 树链剖分后线段树维护
  3. 解决ionic3 android 运行出现Application Error - The connection to the server was unsuccessful
  4. 请求WebApi的几种方式
  5. 强大的CSS3动画库animate.css
  6. 编译器预定义宏的查看和使用
  7. 在windows storage server 2008上创建iscsi磁盘
  8. Flask框架从入门到精通之参数配置(二)
  9. 设计模式-发布订阅模式
  10. let与expr命令的用法与实战案例