# \#ml

**URL:** https://community.sonarsource.com/tag/ml/428.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Write High Quality Machine Learning code with PyTorch](https://community.sonarsource.com/t/write-high-quality-machine-learning-code-with-pytorch/126833)

<div class="topic-metadata">

**Author:** [@jean.jimbo](https://community.sonarsource.com/u/jean.jimbo)\
**Replies:** 1\
**Last updated:** [September 17, 2025, 9:16am UTC](https://community.sonarsource.com/t/write-high-quality-machine-learning-code-with-pytorch/126833 "2025-09-17T09:16:20Z")

</div>

Hello Pythonistas, Sonar can now help you write clean Python code with PyTorch, one of the most widely adopted deep-learning frameworks. These rules help you to avoid pitfalls where you spend a lot of your time such as …

---

## [Write Clean Machine Learning Code with scikit-learn](https://community.sonarsource.com/t/write-clean-machine-learning-code-with-scikit-learn/116205)

<div class="topic-metadata">

**Author:** [@jean.jimbo](https://community.sonarsource.com/u/jean.jimbo)\
**Replies:** 0\
**Last updated:** [May 29, 2024, 6:47am UTC](https://community.sonarsource.com/t/write-clean-machine-learning-code-with-scikit-learn/116205 "2024-05-29T06:47:16Z")

</div>

Hello Pythonistas, Sonar now helps you avoid common pitfalls when building machine learning algorithms with the scikit-learn library. You can find the following new rules in SonarCloud and the next versions of SonarQub…

---

## [Write Clean Machine Learning Code with Tensorflow](https://community.sonarsource.com/t/write-clean-machine-learning-code-with-tensorflow/112470)

<div class="topic-metadata">

**Author:** [@jean.jimbo](https://community.sonarsource.com/u/jean.jimbo)\
**Replies:** 0\
**Last updated:** [April 2, 2024, 7:43am UTC](https://community.sonarsource.com/t/write-clean-machine-learning-code-with-tensorflow/112470 "2024-04-02T07:43:54Z")

</div>

Hello Pythonistas, You can now avoid common pitfalls when working with TensorFlow in building your machine-learning systems with these new rules: S6908: “tensorflow.function” should not be recursive S6911: “tf.functio…
