Classification: Programming exercise
Stay organized with collections
Save and categorize content based on your preferences.
In the following exercise, you'll train a binary classifier to separate two
similar-looking species of rice and calculate relevant metrics.
Programming exercises run directly in your browser (no setup
required!) using the Colaboratory
platform. Colaboratory is supported on most major browsers, and is most
thoroughly tested on desktop versions of Chrome and Firefox.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-25 UTC.
[null,null,["Last updated 2025-08-25 UTC."],[[["\u003cp\u003eThis exercise focuses on training a binary classifier to distinguish between two rice species using a provided dataset.\u003c/p\u003e\n"],["\u003cp\u003eThe exercise utilizes Google Colaboratory, allowing direct execution in-browser without requiring any setup on your local machine.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Colaboratory is broadly compatible with major browsers, having undergone extensive testing, specifically on Chrome and Firefox desktop versions.\u003c/p\u003e\n"]]],[],null,["# Classification: Programming exercise\n\nIn the following exercise, you'll train a binary classifier to separate two\nsimilar-looking species of rice and calculate relevant metrics. \n[Open classification exercise](https://colab.research.google.com/github/google/eng-edu/blob/main/ml/cc/exercises/binary_classification_rice.ipynb?utm_source=mlcc&utm_campaign=colab-external&utm_medium=referral&utm_content=binary_classification)\n\nProgramming exercises run directly in your browser (no setup\nrequired!) using the [Colaboratory](https://colab.research.google.com)\nplatform. Colaboratory is supported on most major browsers, and is most\nthoroughly tested on desktop versions of Chrome and Firefox. \n[Help Center](https://support.google.com/machinelearningeducation)"]]