{"id":13427037,"url":"https://github.com/ageron/handson-ml2","last_synced_at":"2025-05-14T22:06:14.777Z","repository":{"id":37285446,"uuid":"164554832","full_name":"ageron/handson-ml2","owner":"ageron","description":"A series of Jupyter notebooks that walk you through the fundamentals of Machine Learning and Deep Learning in Python using Scikit-Learn, Keras and TensorFlow 2.","archived":false,"fork":false,"pushed_at":"2024-06-13T08:10:24.000Z","size":154110,"stargazers_count":28759,"open_issues_count":227,"forks_count":12990,"subscribers_count":655,"default_branch":"master","last_synced_at":"2025-05-07T21:16:15.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ageron.png","metadata":{"files":{"readme":"README.md","changelog":"changes_in_2nd_edition.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-08T03:49:07.000Z","updated_at":"2025-05-07T19:25:38.000Z","dependencies_parsed_at":"2024-04-08T02:05:23.328Z","dependency_job_id":"4fbb327f-e716-4153-b034-4806cc2d653a","html_url":"https://github.com/ageron/handson-ml2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fhandson-ml2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fhandson-ml2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fhandson-ml2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ageron%2Fhandson-ml2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ageron","download_url":"https://codeload.github.com/ageron/handson-ml2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235694,"owners_count":22036963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T00:01:51.823Z","updated_at":"2025-05-14T22:06:09.724Z","avatar_url":"https://github.com/ageron.png","language":"Jupyter Notebook","readme":"Machine Learning Notebooks\n==========================\n\n# ⚠ The 3rd edition of my book will be released in October 2022. The notebooks are available at [ageron/handson-ml3](https://github.com/ageron/handson-ml3) and contain more up-to-date code.\n\nThis project aims at teaching you the fundamentals of Machine Learning in\npython. It contains the example code and solutions to the exercises in the second edition of my O'Reilly book [Hands-on Machine Learning with Scikit-Learn, Keras and TensorFlow](https://www.oreilly.com/library/view/hands-on-machine-learning/9781492032632/):\n\n\u003cimg src=\"https://images-na.ssl-images-amazon.com/images/I/51aqYc1QyrL._SX379_BO1,204,203,200_.jpg\" title=\"book\" width=\"150\" /\u003e\n\n**Note**: If you are looking for the first edition notebooks, check out [ageron/handson-ml](https://github.com/ageron/handson-ml). For the third edition, check out [ageron/handson-ml3](https://github.com/ageron/handson-ml3).\n\n## Quick Start\n\n### Want to play with these notebooks online without having to install anything?\nUse any of the following services (I recommended Colab or Kaggle, since they offer free GPUs and TPUs).\n\n**WARNING**: _Please be aware that these services provide temporary environments: anything you do will be deleted after a while, so make sure you download any data you care about._\n\n* \u003ca href=\"https://colab.research.google.com/github/ageron/handson-ml2/blob/master/\" target=\"_parent\"\u003e\u003cimg src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/\u003e\u003c/a\u003e\n\n* \u003ca href=\"https://homl.info/kaggle/\"\u003e\u003cimg src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\" /\u003e\u003c/a\u003e\n\n* \u003ca href=\"https://mybinder.org/v2/gh/ageron/handson-ml2/HEAD?filepath=%2Findex.ipynb\"\u003e\u003cimg src=\"https://mybinder.org/badge_logo.svg\" alt=\"Launch binder\" /\u003e\u003c/a\u003e\n\n* \u003ca href=\"https://homl.info/deepnote/\"\u003e\u003cimg src=\"https://deepnote.com/buttons/launch-in-deepnote-small.svg\" alt=\"Launch in Deepnote\" /\u003e\u003c/a\u003e\n\n### Just want to quickly look at some notebooks, without executing any code?\n\n* \u003ca href=\"https://nbviewer.jupyter.org/github/ageron/handson-ml2/blob/master/index.ipynb\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg\" alt=\"Render nbviewer\" /\u003e\u003c/a\u003e\n\n* [github.com's notebook viewer](https://github.com/ageron/handson-ml2/blob/master/index.ipynb) also works but it's not ideal: it's slower, the math equations are not always displayed correctly, and large notebooks often fail to open.\n\n### Want to run this project using a Docker image?\nRead the [Docker instructions](https://github.com/ageron/handson-ml2/tree/master/docker).\n\n### Want to install this project on your own machine?\n\nStart by installing [Anaconda](https://www.anaconda.com/distribution/) (or [Miniconda](https://docs.conda.io/en/latest/miniconda.html)), [git](https://git-scm.com/downloads), and if you have a TensorFlow-compatible GPU, install the [GPU driver](https://www.nvidia.com/Download/index.aspx), as well as the appropriate version of CUDA and cuDNN (see TensorFlow's documentation for more details).\n\nNext, clone this project by opening a terminal and typing the following commands (do not type the first `$` signs on each line, they just indicate that these are terminal commands):\n\n    $ git clone https://github.com/ageron/handson-ml2.git\n    $ cd handson-ml2\n\nNext, run the following commands:\n\n    $ conda env create -f environment.yml\n    $ conda activate tf2\n    $ python -m ipykernel install --user --name=python3\n\nFinally, start Jupyter:\n\n    $ jupyter notebook\n\nIf you need further instructions, read the [detailed installation instructions](INSTALL.md).\n\n# FAQ\n\n**Which Python version should I use?**\n\nI recommend Python 3.8. If you follow the installation instructions above, that's the version you will get. Most code will work with other versions of Python 3, but some libraries do not support Python 3.9 or 3.10 yet, which is why I recommend Python 3.8.\n\n**I'm getting an error when I call `load_housing_data()`**\n\nMake sure you call `fetch_housing_data()` *before* you call `load_housing_data()`. If you're getting an HTTP error, make sure you're running the exact same code as in the notebook (copy/paste it if needed). If the problem persists, please check your network configuration.\n\n**I'm getting an SSL error on MacOSX**\n\nYou probably need to install the SSL certificates (see this [StackOverflow question](https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error)). If you downloaded Python from the official website, then run `/Applications/Python\\ 3.8/Install\\ Certificates.command` in a terminal (change `3.8` to whatever version you installed). If you installed Python using MacPorts, run `sudo port install curl-ca-bundle` in a terminal.\n\n**I've installed this project locally. How do I update it to the latest version?**\n\nSee [INSTALL.md](INSTALL.md)\n\n**How do I update my Python libraries to the latest versions, when using Anaconda?**\n\nSee [INSTALL.md](INSTALL.md)\n\n## Contributors\nI would like to thank everyone [who contributed to this project](https://github.com/ageron/handson-ml2/graphs/contributors), either by providing useful feedback, filing issues or submitting Pull Requests. Special thanks go to Haesun Park and Ian Beauregard who reviewed every notebook and submitted many PRs, including help on some of the exercise solutions. Thanks as well to Steven Bunkley and Ziembla who created the `docker` directory, and to github user SuperYorio who helped on some exercise solutions.\n","funding_links":[],"categories":["Jupyter Notebook","A01_机器学习教程","Unofficial","HarmonyOS","Machine Learning","Tensorflow","▶️ Content"],"sub_categories":["Windows Manager","\u003ca name=\"#csharp\"\u003e\u003c/a\u003eC#","3. Course and Code","Artificial Intelligence"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Fhandson-ml2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fageron%2Fhandson-ml2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fageron%2Fhandson-ml2/lists"}