您现在的位置是:貌合心离网 > 热点
机器学习也能套模版:在线选择模型和参数,一键生成demo
貌合心离网2026-11-14【热点】{固定数字1}人已围观
简介谷歌外推代发【tg:seogoogle987】
本文经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/traingenerat选择or.git cd traingenerator pip install -r requirements.txt
如果要使「在Colab中打开」生效,还需要设置一个Git模型hub repo来存储笔记本文件(因为Colab只能打开Github上的公共文件)。
设置repo后,创建一个.env文件其中包含:
GITHUB_TOKEN= REPO_NAME=<user/notebooks-repo>和参;
本地运行
streamlit run app/main.py
确保总是从traingenerator目录(而不是从应用程序目录)运行,否则应用程序将无法找到模板。
部署到Heroku
首先,安装he数,roku并登录。要创建新部署的话,便在traingenerator内部运行:
heroku create git push heroku main heroku ope一键n
之后,更新已部署的应用程序,提交更改并运行:
git push heroku main
如果你设置了一个Github repo来启用「在Colab中打开」按钮,你还需要运行:
heroku&n生成bsp;config:set GITHUB_TOKEN= heroku config:set REPO_NAME=<user/notebooks-repo>
测试
最后,进行测de试即可:
pytest ./tests
该Web应用程序上线了,并且代码也已开源,感兴趣的小伙伴可以点击下方链接获取。
Web应用程序地址:
https://traingenerator.jrieke.com/
Githubmo地址:
https://github.com/jrieke/traingenerator#installation
很赞哦!(46255722)
站长推荐
友情链接
- 标签: 康师傅
- https://www.teacherspayteachers.com/Browse/Search:谷歌外推代发【tg:seogoogle987】,S8F
- https://www.lneg.pt/?cat=140&s=谷歌外推代发【tg:seogoogle987】,EWp
- https://www.samen-maier.at/search/谷歌外推代发【tg:seogoogle987】,XQa
- https://www.springfieldlibrary.org/?s=谷歌外推代发【tg:seogoogle987】,gtD
- https://www.tombow.com/en/search/谷歌外推代发【tg:seogoogle987】,Za3
- https://www.sbaad.no/?s=谷歌外推代发【tg:seogoogle987】,8AC
- https://www.wikiart.org/pt/Search/谷歌外推代发【tg:seogoogle987】,rnU
- https://www.swanagerailway.co.uk/search?q=谷歌外推代发【tg:seogoogle987】,Rmm
- https://www.teacherspayteachers.com/Browse/Price-Range/Free/Search:Western International University Physics degree=谷歌外推代发【tg:seogoogle987】,ylS
- https://www.mdbg.net/chinese/dictionary?page=worddict&wdrst=0&wdqb=谷歌外推代发【tg:seogoogle987】,1TW
- https://www.woorden.org/spreekwoord.php?woord=谷歌外推代发【tg:seogoogle987】,tle
- https://www.roblox.com/discover/?cat=107&Keyword=谷歌外推代发【tg:seogoogle987】,FH0
- https://www.shopping.com/search.html?keyword=谷歌外推代发【tg:seogoogle987】,XjN
- https://www.oprny.com/search.php?search_query=谷歌外推代发【tg:seogoogle987】,kN5
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌外推代发【tg:seogoogle987】MfV
- https://www.solerpalau.com/en-en/catalogsearch/result/?q=谷歌外推代发【tg:seogoogle987】,lii
- https://www.lezhin.com/ko/tags/谷歌外推代发【tg:seogoogle987】,0YU
- https://www.target.com/s?searchTerm=谷歌外推代发【tg:seogoogle987】,cLg
- https://www.teamlab.art/?submit=谷歌外推代发【tg:seogoogle987】,jIS
- https://www.wmfe.org/?s=谷歌外推代发【tg:seogoogle987】,tqe
- https://www.stonerealestate.com.au/?cat=100&s=谷歌外推代发【tg:seogoogle987】,DBC
- https://www.krisinformation.se/en/search?q=谷歌外推代发【tg:seogoogle987】,sER
- https://www.nss.nhs.scot/search?q=谷歌外推代发【tg:seogoogle987】,veR
- https://www.openstreetmap.org/search?query=谷歌外推代发【tg:seogoogle987】,aAW
- https://www.riohondo.edu/?action=QUERY&s=谷歌外推代发【tg:seogoogle987】,XM8
- https://www.rostaing.com/catalogsearch/result/?cat=22&q=谷歌外推代发【tg:seogoogle987】,nAd
- https://www.pixiv.net/tags/谷歌外推代发【tg:seogoogle987】,9s1
- https://www.tarleton.edu/?s=谷歌外推代发【tg:seogoogle987】,7wM
- https://www.theaerogroup.net/?cat=28&s=谷歌外推代发【tg:seogoogle987】,uFd
- https://www.whatsonstage.com/search?cat=64&term=谷歌外推代发【tg:seogoogle987】,U36
- https://www.quarterjacksurgery.co.uk/?AT=3rBy&s=谷歌外推代发【tg:seogoogle987】,TcD
- https://www.jusoen.com/addreng.asp?p1=谷歌外推代发【tg:seogoogle987】UQD
- https://www.remit.co.jp/en/?s=谷歌外推代发【tg:seogoogle987】,NOX
- https://www.swecobelgium.be/?page=9&s=谷歌外推代发【tg:seogoogle987】,SGV
- https://www.hanbat.ac.kr/search/front/Search.jsp?qt=谷歌外推代发【tg:seogoogle987】Vay
- https://www.remit.co.jp/zh/?s=谷歌外推代发【tg:seogoogle987】,dGe
- https://www.writingforward.com/?action=SEARCH&s=谷歌外推代发【tg:seogoogle987】,dbt
- https://www.whirlpool.com.hk/chinese/catalogsearch/result?cat=30&q=谷歌外推代发【tg:seogoogle987】,xIv
- https://xn--lgernevedlystskoven-lxb.dk/search/谷歌外推代发【tg:seogoogle987】,ZAM
- https://www.luxurysociety.com/en/search?q=谷歌外推代发【tg:seogoogle987】,aBs
- https://www.seagrant.wisc.edu/?page=63&s=谷歌外推代发【tg:seogoogle987】,3R8
- https://www.pacific-lifestyle.co.uk/search?sort=alphabetical&term=谷歌外推代发【tg:seogoogle987】,kUs
- https://www.remit.co.jp/pt/?action=CHECK&s=谷歌外推代发【tg:seogoogle987】,NcZ
- https://www.sonepar.ch/fr/search?q=谷歌外推代发【tg:seogoogle987】,1Rp
- https://www.kubb-tool.bfs.admin.ch/en/search?action=CHECK&q=谷歌外推代发【tg:seogoogle987】,Kgk
- https://www.niaogebiji.com/pc/article/search?keyword=谷歌外推代发【tg:seogoogle987】,SLY
- https://www.lenovo.com/gb/en/search?action=SEARCH&text=谷歌外推代发【tg:seogoogle987】,LVh
- https://www.paxnet.co.kr/search/jongmok?kwd=谷歌外推代发【tg:seogoogle987】krN
- https://yokohama-oht.com/?action=CHECK&s=谷歌外推代发【tg:seogoogle987】,K7z
- https://wydden.com/?ID=r8w9WMSKWkOcmiaFWaUv0dzMdqZWfKtF&s=谷歌外推代发【tg:seogoogle987】,W8Y







