一键重装系统工具 | U盘启动盘制作工具 | 误删文件恢复软件 | 硬盘数据抢救专家 | 电脑蓝屏修复助手 | C盘空间清理神器 | 电脑驱动离线安装工具 | 微信聊天记录恢复工具 | 照片误格式化恢复 | 电脑密码破解清除工具 | 系统崩溃紧急救援盘 | 电脑加速优化大师 | 电脑开不了机怎么重装系统 | 回收站清空了怎么恢复 | 硬盘分区丢失数据恢复 | 电脑卡顿重装系统有用吗 | U盘插入提示格式化数据恢复 | 电脑中毒文件被隐藏恢复 | 忘记电脑开机密码怎么办 | 新硬盘分区对齐工具 | 旧电脑装Win10流畅工具 | SD卡照片删除恢复免费版 | 移动硬盘打不开提示损坏修复 | 电脑无故重启系统修复工具 | 电脑小白一键重装神器 | 程序员电脑环境配置助手 | 设计师电脑字体/素材恢复工具 | 网吧网管系统维护工具箱 | 财务人员电脑发票备份恢复 | 学生党免费电脑系统安装包 | 电脑维修师傅必备工具盘 | 游戏玩家电脑性能优化助手 | 办公白领误删文档恢复软件 | 自媒体视频素材恢复工具 | 网课录制视频损坏修复工具 | 最好的U盘PE系统排名 | 数据恢复软件哪个最强 | 免费电脑助手与收费版区别 | 国产装机工具哪款无广告 | 离线版驱动助手推荐 | 轻量级电脑优化工具对比 | 支持NVMe驱动的PE工具 | 带网络功能的应急启动盘 | 2026最新版万能装机工具 | 支持Win11 24H2的PE工具 | 最新免激活系统重装工具 | 2026数据恢复软件破解版合集 | 纯净无捆绑装机助手V3.0 | 支持苹果M芯片的电脑助手 | 秋季更新版系统维护工具箱 | 电脑系统崩了怎么用U盘把重要资料拷贝出来 | 重装系统前哪些文件夹必须备份 | 固态硬盘误格式化还能恢复数据吗 | 如何制作一个既带PE又能存数据的双分区U盘 | 电脑总是弹窗广告用什么助手彻底拦截 后台管理
📢 欢迎访问系统之家!所有资源均经过安全检测。

Getting started with GitHub Codespaces for machine learning

发布时间:2026-09-15 | 浏览:4
📥 下载地址(文章开头)
软件神器安装一切软件。
Learn about working on machine learning projects with GitHub Codespaces and its out-of-the-box tools. In this article This guide introduces you to machine learning with GitHub Codespaces. You’ll build a simple image classifier, learn about some of the tools that come preinstalled in GitHub Codespaces, and find out how to open your codespace in JupyterLab. Building a simple image classifier We'll use a Jupyter notebook to build a simple image classifier. Jupyter notebooks are sets of cells that you can execute one after another. The notebook we'll use includes a number of cells that build an image classifier using PyTorch . Each cell is a different phase of that process: download a dataset, set up a neural network, train a model, and then test that model. We'll run all of the cells, in sequence, to perform all phases of building the image classifier. When we do this Jupyter saves the output back into the notebook so that you can examine the results. Creating a codespace Go to the github/codespaces-jupyter template repository. Go to the github/codespaces-jupyter template repository. Click Use this template , then click Open in a codespace . Click Use this template , then click Open in a codespace . A codespace for this template will open in a web-based version of Visual Studio Code. Opening the image classifier notebook The default container image that's used by GitHub Codespaces includes a set of machine learning libraries that are preinstalled in your codespace. For example, Numpy, pandas, SciPy, Matplotlib, seaborn, scikit-learn, Keras, PyTorch, Requests, and Plotly. For more information about the default image, see Introduction to dev containers and the devcontainers/images repository. In the VS Code editor, close any "Get Started" tabs that are displayed. Open the notebooks/image-classifier.ipynb notebook file. Building the image classifier The image classifier notebook contains all the code you need to download a dataset, train a neural network, and evaluate its performance. Click Run All to execute all of the notebook’s cells. Click Run All to execute all of the notebook’s cells. If you are prompted to choose a kernel source, select Python Environments , then select the version of Python at the recommended location.
📥 下载地址(文章中间)
软件神器安装一切软件。
If you are prompted to choose a kernel source, select Python Environments , then select the version of Python at the recommended location. Scroll down to view the output of each cell. Scroll down to view the output of each cell. Opening your codespace in JupyterLab You can open your codespace in JupyterLab from the "Your codespaces" page at github.com/codespaces , or by using GitHub CLI. For more information, see Opening an existing codespace . The JupyterLab application must be installed in the codespace you are opening. The default dev container image includes JupyterLab, so codespaces created from the default image will always have JupyterLab installed. For more information about the default image, see Introduction to dev containers and the devcontainers/images repository. If you're not using the default image in your dev container configuration, you can install JupyterLab by adding the ghcr.io/devcontainers/features/python feature to your devcontainer.json file. You should include the option "installJupyterlab": true . For more information, see the README for the python feature, in the devcontainers/features repository. Configuring NVIDIA CUDA for your codespace This section only applies to customers who can create codespaces on machines that use a GPU. The ability to choose a machine type that uses a GPU was offered to selected customers during a trial period. This option is not generally available. Some software requires you to install NVIDIA CUDA to use your codespace’s GPU. Where this is the case, you can create your own custom configuration, by using a devcontainer.json file, and specify that CUDA should be installed. For more information on creating a custom configuration, see Introduction to dev containers . For full details of the script that's run when you add the nvidia-cuda feature, see the devcontainers/features repository. Within the codespace, open the .devcontainer/devcontainer.json file in the editor. Within the codespace, open the .devcontainer/devcontainer.json file in the editor. Add a top-level features object with the following contents: "features" : { "ghcr.io/devcontainers/features/nvidia-cuda:1" : { "installCudnn" : true } } For more information about the features object, see the development containers specification . If you are using the devcontainer.json file from the image classifier repository you created for this tutorial, your devcontainer.json file will now look like this: { "customizations" : { "vscode" : { "extensions" : [ "ms-python.python" , "ms-toolsai.jupyter" ] } } , "features" : { "ghcr.io/devcontainers/features/nvidia-cuda:1" : { "installCudnn" : true } } } Add a top-level features object with the following contents: For more information about the features object, see the development containers specification . If you are using the devcontainer.json file from the image classifier repository you created for this tutorial, your devcontainer.json file will now look like this: Save the change. Save the change. Access the VS Code Command Palette ( Shift + Command + P / Ctrl + Shift + P ), then start typing "rebuild". Click Codespaces: Rebuild Container . Tip You may occasionally want to perform a full rebuild to clear your cache and rebuild your container with fresh images. For more information, see Rebuilding the container in a codespace . The codespace container will be rebuilt. This will take several minutes. When the rebuild is complete the codespace is automatically reopened. Access the VS Code Command Palette ( Shift + Command + P / Ctrl + Shift + P ), then start typing "rebuild". Click Codespaces: Rebuild Container . You may occasionally want to perform a full rebuild to clear your cache and rebuild your container with fresh images. For more information, see Rebuilding the container in a codespace . The codespace container will be rebuilt. This will take several minutes. When the rebuild is complete the codespace is automatically reopened. Publish your change to a repository so that CUDA will be installed in any new codespaces you create from this repository in future. For more information, see Creating a codespace from a template . Publish your change to a repository so that CUDA will be installed in any new codespaces you create from this repository in future. For more information, see Creating a codespace from a template .
📥 下载地址(文章结尾)
软件神器安装一切软件。