• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Dpananos/GetCards: Notebook to download machine learning flashcards

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Dpananos/GetCards

开源软件地址(OpenSource Url):

https://github.com/Dpananos/GetCards

开源编程语言(OpenSource Language):

Jupyter Notebook 100.0%

开源软件介绍(OpenSource Introduction):

GetCards

Data scientist Chris Albon has been posting pictures of his machine learning flash cards on Twitter. This repo uses a Jupyter notebook to download them for convenient viewing.

OSX/Linux

To use this repo, you will:

  • Install Jupyter and required modules
  • Create a Twitter app to provide programmatic access to Twitter
  • Run the Jupyter notebook
  • View the png images it downloads to the repo's ml-cards directory.

Install Jupyter

Run this command to install Jupyter and required modules:

  • pip install -r module_list.txt

Create your Twitter app

This repo uses tweepy to interact with Twitter. To use it, you will create a new Twitter app and insert those credentials into Get Flashcards.ipnyb.

  1. Log into twitter
  2. Browse to https://apps.twitter.com/
  3. Click the Create New App button and define your new app. Here are some example values:
    • Name: Get Flashcards - <your name>
    • Description: Chris Albon ML Flashcard puller
    • Website: http://www.not-used.com
    • Callback URLs: `` <= blank
  4. Check the Developer Agreement and click the Create your Twitter application button.
  5. In the application details page, Select the "Keys and Access Tokens" tab.
  6. Under "Your Access Token", click the Create my access token button.

Insert your credentials

Open Get Flashcards.ipynb and locate these two lines:

    "auth = tweepy.OAuthHandler(consumer_key, consumer_secret) #Fill these in\n",
    "auth.set_access_token(access_token, access_token_secret)  #Fill these in\n",

Replace the consumer_key, consumer_secret, access_token, and access_token_secret with single-quoted values from your application settings created in the previous step.

See the tweepy tutorial for more information, if needed.

Run the Jupyter notebook

Run the Jupyter notebook from a shell in the repo root directory

  • jupyter notebook Get\ Flashcards.ipynb

Jupyter will open a browser page, execute the code, placing all ML flashcards in a ml-cards local directory.

You can enter CTRL+C twice to stop jupyter from the command line.

View the cards

All cards are stored in a local ml-cards directory.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap