您现在的位置是:热点 >>正文
机器学习也能套模版:在线选择模型和参数,一键生成demo
热点932332人已围观
简介...
本文经AI新媒体量子位(公众号ID:QbitAI)授权转载,转载请联系出处。
连机器学习的代码,也可以套模(tou)版(lan)了。
现在,有一个Web应用程序,可以生成用于机器学习的模板代码(demo),目前支持PyTorch和sc机器ikit-learn。
同时,对于初学者来说,这也是一个非常好的工具。在模版中学习机器学习的代码,可以少走一些弯路。
这也难怪开发者在项目的介绍中,这样写道:
这非常适合机器学习的初学者!
这个名为traingenerator的项目,已于最近成功上学习线,并冲上了reddit的热榜。
这,究竟是一个什么样的项目,就让我们来看一下。
选择模型和参数,一键生成demo
在任务处理上,目前的任务目标只有图像分类这一种可供选择。
不过,开发者说,有更多功能正在路上,比如目标检测、语义分割等任务目标。
而目也能前,Web支持的框架有PyTorch和scikit-learn,如下图所示,在选定框架后,模版会自动变换。
在PyTorch下,可使用的模型有:AlexNet、ResNet、DenseNet及VGG。
而在scikit-learn下,套模可选择的模型有:Support vectors、Random forest、Perceptron、K-nearest neighbors及Decision tree。
之后,在下方,在选择不同的模型下,还可以调节不同的训练参数。
此外,可输入版:的数据有着两种选择:Numpy arrays和Image files。
最后,在demo输出上,你也有三个选择,能够分别导出.py、Jupyter notebook和Google Colab三种文件格式。
目前,该项目已经在网站上线,可以直接在网在线页上(网页地址可在文末获取)操作上述内容,并直接生成demo。
运行方法
另外,如果你想要在本地运行或者部署,开发者还贴心地提供了使用指南。
安装
git clone https://github.com/jrieke/t选择raingenerator.git cd traingenerator pip install -r requirements.txt
如果要使「在Colab中打开模型」生效,还需要设置一个Github repo来存储笔记本文件(因为Colab只能打开Github上的公共文件)。
设置repo后,创建一个.env文件其中包含:
GITHUB_TOKEN= REPO_NAME=<user/note和参books-repo>
本地运行
streamlit run app/main.py
确保总是从traingenerator目录(而不是从应用程序目录)运行,否则应用程序将无法找到模板。
部署到H数,eroku
首先,安装heroku并登录。要创建新部署的话,便在traingenerator内部运行:
heroku create git push heroku main her一键oku open
之后,更新已部署的应用程序,提交更改并运行:
git push heroku main
如果你设置了一个Github repo来启用「在Colab中打开」按钮,你还生成需要运行:
heroku config:set GITHUB_TOKEN= heroku config:set REPO_NAME=<user/notebooks-repo&gdet;
测试
最后,进行测试即可:
pytest ./tests
该Web应用程序上线了,并且代码也已开源,感兴趣的小伙伴可以点击下方链接获取。
Web应用程序地址:
https://traingeneratomor.jrieke.com/
Github地址:
https://github.com/jrieke/traingenerator#installation
Tags:
相关文章
标签: 网宿科技 AI智能加速 边缘AI 网宿安全
热点云梦级4月24日云梦级消息,网宿科技24日晚间发布2026年一季报。报告显示,公司一季度实现营业收入11.16亿元;公司整体毛利率为37.08%,同比提升6.12个百分点,实现毛利4.14亿元,同比增...
【热点】
阅读更多肠粉怎么炒才好吃
热点炒肠粉的做法,炒肠粉做法是什么好吃,炒肠粉的家常做法是什...用料主料肠粉皮300克辅料油适量盐适量酸豆角适量姜适量蒜适量葱适量炒肠粉的做法1.准备好肠粉。2.肠粉切段。3.准备点酸豆角。炒肠粉做法是...
【热点】
阅读更多比用Pytorch框架快200倍!0.76秒后,笔记本上的CNN就搞定了MNIST
热点本文经AI新媒体量子位(公众号ID:QbitAI)授权转载,转载请联系出处。 在MNIST上进行训练,可以说是计算机视觉里的“Hello World”任务了。 而如果使用PyTorch的标准代码训练C...
【热点】
阅读更多
热门文章
最新文章
友情链接
- 标签: 康师傅
- https://www.solerpalau.com/en-en/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,QJc
- https://blvdseafood.com/?s=谷歌霸屏外推技术【tg:seogoogle987】9Ix
- https://www.searcychamber.com/list/search?AsfnA=DtkTQzs&q=谷歌霸屏外推技术【tg:seogoogle987】,8LQ
- https://www.mynextmove.org/find/search?s=谷歌霸屏外推技术【tg:seogoogle987】,UBG
- https://www.parriscues.com/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,CG2
- https://www.oikos-tecnics.com/?s=谷歌霸屏外推技术【tg:seogoogle987】,rYd
- https://www.jusoen.com/addreng.asp?p1=谷歌霸屏外推技术【tg:seogoogle987】VxX
- https://www.soccerbible.com/search?q=谷歌霸屏外推技术【tg:seogoogle987】,L0V
- https://www.remit.co.jp/en/?s=谷歌霸屏外推技术【tg:seogoogle987】,q11
- https://www.otakuninjahero.com/en/search/谷歌霸屏外推技术【tg:seogoogle987】,05B
- https://www.simcoemuskokahealth.org/SearchResults.aspx?SearchQuery=谷歌霸屏外推技术【tg:seogoogle987】,OkQ
- https://www.teacherspayteachers.com/Browse/Search:谷歌霸屏外推技术【tg:seogoogle987】,DQL
- https://www.zalora.sg/catalog/?cat=112&q=谷歌霸屏外推技术【tg:seogoogle987】,Q4t
- https://www.universal-music.co.jp/search/?q=谷歌霸屏外推技术【tg:seogoogle987】,WKI
- https://www.nbm.org/?action=QUERY&s=谷歌霸屏外推技术【tg:seogoogle987】,1u8
- https://www.prattlibrary.org/search?q=谷歌霸屏外推技术【tg:seogoogle987】,ETf
- https://jihoon471.cafe24.com/product/search.html?banner_action=&keyword=谷歌霸屏外推技术【tg:seogoogle987】1pA
- https://www.maigoo.com/search/?block=&q=谷歌霸屏外推技术【tg:seogoogle987】,1xg
- https://www.toy-people.com/?s=谷歌霸屏外推技术【tg:seogoogle987】,PEf
- https://www.remit.co.jp/ne/?s=谷歌霸屏外推技术【tg:seogoogle987】,NpS
- https://www.udc.co.uk/index.php?route=product/search&sort=p.price&order=DESC&tag=谷歌霸屏外推技术【tg:seogoogle987】,I4B
- https://www.theaerogroup.net/?cat=28&s=谷歌霸屏外推技术【tg:seogoogle987】,1bR
- https://www.ng-slo.si/si/iskanje?cat=114&q=谷歌霸屏外推技术【tg:seogoogle987】,Wvm
- https://www.lezhin.com/ko/tags/谷歌霸屏外推技术【tg:seogoogle987】,K5H
- https://www.normani.de/search?q=谷歌霸屏外推技术【tg:seogoogle987】,1AK
- https://blvdseafood.com/?s=谷歌霸屏外推技术【tg:seogoogle987】WVu
- https://www.tailoy.com.pe/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,jMg
- https://www.signingsavvy.com/sentence/谷歌霸屏外推技术【tg:seogoogle987】,54V
- https://www.scivee.tv/?s=谷歌霸屏外推技术【tg:seogoogle987】,yaJ
- https://www.abbreviations.com/谷歌霸屏外推技术【tg:seogoogle987】Ei6
- https://www.polar-tech.com/?action=QUERY&s=谷歌霸屏外推技术【tg:seogoogle987】,Np5
- https://www.urmc.rochester.edu/news/search?q=谷歌霸屏外推技术【tg:seogoogle987】,KaX
- https://search.danawa.com/dsearch.php?query=谷歌霸屏外推技术【tg:seogoogle987】njq
- https://yscc1986.net/search/谷歌霸屏外推技术【tg:seogoogle987】Lqq
- https://www.olx.ba/pretraga?trazilica=谷歌霸屏外推技术【tg:seogoogle987】,oNN
- https://www.roberthalf.com/us/en/jobs/all/谷歌霸屏外推技术【tg:seogoogle987】UNi
- https://www.silentiumpc.com/en/search/谷歌霸屏外推技术【tg:seogoogle987】,Hro
- https://www.abbreviations.com/谷歌霸屏外推技术【tg:seogoogle987】Z5C
- https://www.pierreherme.com/catalogsearch/result/?q=谷歌霸屏外推技术【tg:seogoogle987】,ZOY
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌霸屏外推技术【tg:seogoogle987】,jpT
- https://www.youm7.com/Home/Search?allwords=谷歌霸屏外推技术【tg:seogoogle987】,jFN
- https://www.mi.com/search?keyword=谷歌霸屏外推技术【tg:seogoogle987】,iZ7
- https://www.samen-maier.at/search/谷歌霸屏外推技术【tg:seogoogle987】,abe
- https://www.qidulp.com/search?query=谷歌霸屏外推技术【tg:seogoogle987】,7JU
- https://www.nonsolocap.it/cap?action=SEARCH&k=谷歌霸屏外推技术【tg:seogoogle987】,qkP
- https://www.tarleton.edu/news/search/谷歌霸屏外推技术【tg:seogoogle987】,LUH
- https://www.le-trend.com/en/search/=谷歌霸屏外推技术【tg:seogoogle987】,coe
- https://www.zutari.com/?s=谷歌霸屏外推技术【tg:seogoogle987】,rXt
- https://www.pearlstonecenter.org/search/谷歌霸屏外推技术【tg:seogoogle987】,Tq8
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=谷歌霸屏外推技术【tg:seogoogle987】,vum