# Machine Learning by Tutorials

**URL:** https://forums.kodeco.com/c/books/machine-learning-by-tutorials/46.md

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

---

## [About the Machine Learning by Tutorials category](https://forums.kodeco.com/t/about-the-machine-learning-by-tutorials-category/49219)

<div class="topic-metadata">

**Author:** [@chrisrazeware](https://forums.kodeco.com/u/chrisrazeware)\
**Replies:** 5\
**Last updated:** [October 21, 2022, 10:16am UTC](https://forums.kodeco.com/t/about-the-machine-learning-by-tutorials-category/49219 "2022-10-21T10:16:39Z")

</div>

For all discussion and errata about our book, Machine Learning by Tutorials, available here: https://store.raywenderlich.com/products/machine-learning-by-tutorials

---

## [Training Accuracy 100%, Validation Accuracy 0%, and Testing Accuracy 92% in Chapter 6 challenge 2](https://forums.kodeco.com/t/training-accuracy-100-validation-accuracy-0-and-testing-accuracy-92-in-chapter-6-challenge-2/123233)

<div class="topic-metadata">

**Author:** [@coder\_rgv7](https://forums.kodeco.com/u/coder_rgv7)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 5:17pm UTC](https://forums.kodeco.com/t/training-accuracy-100-validation-accuracy-0-and-testing-accuracy-92-in-chapter-6-challenge-2/123233 "2020-10-22T17:17:44Z")

</div>

I finished chapter 6 and was doing the optional challenges at the end. I tried challenge 2, where you have to use resnet instead of squeezenet, and got some very strange metrics which I’m not understanding. I looked at …

---

## [Updates Planned?](https://forums.kodeco.com/t/updates-planned/169299)

<div class="topic-metadata">

**Author:** [@jmtate](https://forums.kodeco.com/u/jmtate)\
**Replies:** 0\
**Last updated:** [April 19, 2022, 1:52am UTC](https://forums.kodeco.com/t/updates-planned/169299 "2022-04-19T01:52:41Z")

</div>

Just curious, are there any new editions planned for this book, or has it been discontinued? Thanks!

---

## [Chapter 5, Page 191 - Exercise for the adventurous reader](https://forums.kodeco.com/t/chapter-5-page-191-exercise-for-the-adventurous-reader/159757)

<div class="topic-metadata">

**Author:** [@konradzdunczyk](https://forums.kodeco.com/u/konradzdunczyk)\
**Replies:** 0\
**Last updated:** [December 9, 2021, 10:07am UTC](https://forums.kodeco.com/t/chapter-5-page-191-exercise-for-the-adventurous-reader/159757 "2021-12-09T10:07:42Z")

</div>

I wonder what is a proper solution for evaluate method based on extracted features? I figured out somthing like this but I have feeling there is better solution for that: class MyImageClassifier(ImageClassifier): d…

---

## [How can I choose which GPU Create ML will use?](https://forums.kodeco.com/t/how-can-i-choose-which-gpu-create-ml-will-use/153981)

<div class="topic-metadata">

**Author:** [@yonibentov](https://forums.kodeco.com/u/yonibentov)\
**Replies:** 0\
**Last updated:** [October 20, 2021, 4:46am UTC](https://forums.kodeco.com/t/how-can-i-choose-which-gpu-create-ml-will-use/153981 "2021-10-20T04:46:15Z")

</div>

Hello, I have some eGPUs hooked up to my iMac Pro, but when I try to train data using Create ML (e.g., from Chapter 3), I see in the activity monitor that only the built-in Pro Vega 64X is being used. I tried to check …

---

## [Installing Anaconda on Macbook Silicon Chip](https://forums.kodeco.com/t/installing-anaconda-on-macbook-silicon-chip/128812)

<div class="topic-metadata">

**Author:** [@nevilator](https://forums.kodeco.com/u/nevilator)\
**Replies:** 2\
**Last updated:** [July 13, 2021, 8:56am UTC](https://forums.kodeco.com/t/installing-anaconda-on-macbook-silicon-chip/128812 "2021-07-13T08:56:47Z")

</div>

Would the authors provide supplementary instructions for downloading and installing Anaconda on a new MacBook Pro M1 with Silicon Chip processor running Big Sur MacOSX. Do I: use the Anaconda MacOS 64-bit Command Line…

---

## [Any Update Planned for this ML Book](https://forums.kodeco.com/t/any-update-planned-for-this-ml-book/141925)

<div class="topic-metadata">

**Author:** [@absarf](https://forums.kodeco.com/u/absarf)\
**Replies:** 1\
**Last updated:** [June 18, 2021, 10:50am UTC](https://forums.kodeco.com/t/any-update-planned-for-this-ml-book/141925 "2021-06-18T10:50:59Z")

</div>

Based on WWDC-20 & 21 announcements on CreateML, I think this book should be updated with the new material. Thanks

---

## [Completed training - converged early at 10 iterations](https://forums.kodeco.com/t/completed-training-converged-early-at-10-iterations/141589)

<div class="topic-metadata">

**Author:** [@spencerfeng](https://forums.kodeco.com/u/spencerfeng)\
**Replies:** 0\
**Last updated:** [June 4, 2021, 9:25pm UTC](https://forums.kodeco.com/t/completed-training-converged-early-at-10-iterations/141589 "2021-06-04T21:25:16Z")

</div>

In Create ML, I am training the MultiSnacks model, no matter how many iterations I set, it will only integrate 10 times and I am getting following message: Completed training - converged early at 10 iterations.

---

## [Chapter 9 Snacks Annotations File missing](https://forums.kodeco.com/t/chapter-9-snacks-annotations-file-missing/118157)

<div class="topic-metadata">

**Author:** [@ufoapps](https://forums.kodeco.com/u/ufoapps)\
**Replies:** 4\
**Last updated:** [April 8, 2021, 2:52am UTC](https://forums.kodeco.com/t/chapter-9-snacks-annotations-file-missing/118157 "2021-04-08T02:52:30Z")

</div>

The download link is a zip file with the images but the annotation files are not included. Please point me to where I can download them.

---

## [Section III, and Apple Documentation \> Core ML & Create ML](https://forums.kodeco.com/t/section-iii-and-apple-documentation-core-ml-create-ml/108944)

<div class="topic-metadata">

**Author:** [@catzshadowy](https://forums.kodeco.com/u/catzshadowy)\
**Replies:** 4\
**Last updated:** [March 26, 2021, 7:24am UTC](https://forums.kodeco.com/t/section-iii-and-apple-documentation-core-ml-create-ml/108944 "2021-03-26T07:24:42Z")

</div>

I have been reading over the Apple Developer - Documentation \> Core ML & Create ML Both seem to have a connection to NLP - Natural Language Processing. But - Section III - doesn’t seem to follow what is being said in …

---

## [Chapter 2 page 62 error with HealthySnacks()](https://forums.kodeco.com/t/chapter-2-page-62-error-with-healthysnacks/97538)

<div class="topic-metadata">

**Author:** [@fongrel](https://forums.kodeco.com/u/fongrel)\
**Replies:** 8\
**Last updated:** [March 25, 2021, 11:18pm UTC](https://forums.kodeco.com/t/chapter-2-page-62-error-with-healthysnacks/97538 "2021-03-25T23:18:43Z")

</div>

Using macOS Catalina 10.15.1, Xcode 11.2.1 for the line let healthySnacks = HealthySnacks() I am getting the error: Cannot call value of non-function type ‘module’ Not very sure what is the issue… think the HealthyS…

---

## [MLTextClassifier CoreML](https://forums.kodeco.com/t/mltextclassifier-coreml/132029)

<div class="topic-metadata">

**Author:** [@franco881](https://forums.kodeco.com/u/franco881)\
**Replies:** 0\
**Last updated:** [February 5, 2021, 11:05pm UTC](https://forums.kodeco.com/t/mltextclassifier-coreml/132029 "2021-02-05T23:05:34Z")

</div>

Hello, I would like to learn a lot about Text Classifier and how can i get the accuracy of the prediction and how can i improve the created models. Do you have any book or course about It? I’m really interesting to pay …

---

## [Chapter 15 : how to resume after loading a saved model?](https://forums.kodeco.com/t/chapter-15-how-to-resume-after-loading-a-saved-model/128702)

<div class="topic-metadata">

**Author:** [@pom73](https://forums.kodeco.com/u/pom73)\
**Replies:** 0\
**Last updated:** [December 28, 2020, 10:42pm UTC](https://forums.kodeco.com/t/chapter-15-how-to-resume-after-loading-a-saved-model/128702 "2020-12-28T22:42:51Z")

</div>

Hello, I trained the network and saved it at the end. To do so, I used code collab and since it takes a long time, told myself I could reload the network and continue reading and experimenting later. alas, I am not sur…

---

## [Validation set for YOLO](https://forums.kodeco.com/t/validation-set-for-yolo/116788)

<div class="topic-metadata">

**Author:** [@grumbler](https://forums.kodeco.com/u/grumbler)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 1:39am UTC](https://forums.kodeco.com/t/validation-set-for-yolo/116788 "2020-08-07T01:39:56Z")

</div>

Why is there no validation set when training an object detector model in Turi Create using TinyYOLO (page 351)?

---

## [Unexpected keyword argument "ragged" when training my own model](https://forums.kodeco.com/t/unexpected-keyword-argument-ragged-when-training-my-own-model/116885)

<div class="topic-metadata">

**Author:** [@shortspy](https://forums.kodeco.com/u/shortspy)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 7:05pm UTC](https://forums.kodeco.com/t/unexpected-keyword-argument-ragged-when-training-my-own-model/116885 "2020-08-06T19:05:38Z")

</div>

Hello, when I train my own image classification model using the same code in MobileNet, but changing some things like the class size, I get the error when I try to convert it to the .mlmodel format: TypeError: init() go…

---

## [Chapter 8 v23 page 305](https://forums.kodeco.com/t/chapter-8-v23-page-305/109421)

<div class="topic-metadata">

**Author:** [@ufoapps](https://forums.kodeco.com/u/ufoapps)\
**Replies:** 3\
**Last updated:** [July 7, 2020, 9:28am UTC](https://forums.kodeco.com/t/chapter-8-v23-page-305/109421 "2020-07-07T09:28:28Z")

</div>

top\_model.add(Conv2D(num\_filters, 3, padding=“same”)) gives num\_filters not defined error

---

## [Chapter 4 turicreate can not import in jupyter notebook](https://forums.kodeco.com/t/chapter-4-turicreate-can-not-import-in-jupyter-notebook/58764)

<div class="topic-metadata">

**Author:** [@faabalia](https://forums.kodeco.com/u/faabalia)\
**Replies:** 16\
**Last updated:** [July 6, 2020, 12:16am UTC](https://forums.kodeco.com/t/chapter-4-turicreate-can-not-import-in-jupyter-notebook/58764 "2020-07-06T00:16:48Z")

</div>

Hi and happy new year, I am trying to import turicreate in jupyter notebook but I have the following error: ModuleNotFoundError Traceback (most recent call last) in ----\> 1 import turicreate …

---

## [Chapter 5, Page 191](https://forums.kodeco.com/t/chapter-5-page-191/94005)

<div class="topic-metadata">

**Author:** [@rjinx](https://forums.kodeco.com/u/rjinx)\
**Replies:** 3\
**Last updated:** [July 5, 2020, 1:04am UTC](https://forums.kodeco.com/t/chapter-5-page-191/94005 "2020-07-05T01:04:28Z")

</div>

“MXFeatureExtractor” got removed in the latest version of Turi Create? https://github.com/apple/turicreate/blob/master/src/python/turicreate/toolkits/\_image\_feature\_extractor.py from turicreate.toolkits import \_pre\_tr…

---

## [Chapter 10 Semantic Segmentation](https://forums.kodeco.com/t/chapter-10-semantic-segmentation/111407)

<div class="topic-metadata">

**Author:** [@carlos](https://forums.kodeco.com/u/carlos)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 9:48am UTC](https://forums.kodeco.com/t/chapter-10-semantic-segmentation/111407 "2020-06-08T09:48:43Z")

</div>

On pag 360, the link download.tensorflow.org/models/ deeplabv3\_mnv2\_pascal\_trainval\_2018\_01\_29.tar.gz Seems to be broken, do you mind giving me a working link.

---

## [Using SwiftUI for creating views instead of storyboards](https://forums.kodeco.com/t/using-swiftui-for-creating-views-instead-of-storyboards/110488)

<div class="topic-metadata">

**Author:** [@vijesh](https://forums.kodeco.com/u/vijesh)\
**Replies:** 3\
**Last updated:** [June 2, 2020, 10:06am UTC](https://forums.kodeco.com/t/using-swiftui-for-creating-views-instead-of-storyboards/110488 "2020-06-02T10:06:34Z")

</div>

Most of the projects in ML by Tutorials uses storyboard to create views. How difficult is it to integrate SwiftUI into these projects? Are there any advantages or disadvantages in doing so?

---

## [Chapter 5: Training the classifier with regularization](https://forums.kodeco.com/t/chapter-5-training-the-classifier-with-regularization/103925)

<div class="topic-metadata">

**Author:** [@chlkdst](https://forums.kodeco.com/u/chlkdst)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 8:02pm UTC](https://forums.kodeco.com/t/chapter-5-training-the-classifier-with-regularization/103925 "2020-04-21T20:02:38Z")

</div>

Hi all, In the book, it says typically, you’d use either l2\_penalty or l1\_penalty, but not both in the same training session. However, the code snippet to train the model both passes arguments to l2\_penalty and l1\_p…

---

## [Chapter 5: Confusion Matrix visualization](https://forums.kodeco.com/t/chapter-5-confusion-matrix-visualization/103917)

<div class="topic-metadata">

**Author:** [@chlkdst](https://forums.kodeco.com/u/chlkdst)\
**Replies:** 2\
**Last updated:** [April 3, 2020, 3:37pm UTC](https://forums.kodeco.com/t/chapter-5-confusion-matrix-visualization/103917 "2020-04-03T15:37:07Z")

</div>

Hi all, I’m new at Python, thus I’m not very familiar with its syntax yet. I just want to confirm in the confusion matrix visualization part of the, in function compute\_confusion\_matrix(metrics, labels) there is this co…

---

## [Installation of Catalina 10.15](https://forums.kodeco.com/t/installation-of-catalina-10-15/100623)

<div class="topic-metadata">

**Author:** [@raghu](https://forums.kodeco.com/u/raghu)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 10:36am UTC](https://forums.kodeco.com/t/installation-of-catalina-10-15/100623 "2020-03-05T10:36:56Z")

</div>

Dear all, I am unable to install Catalina 10.15 on my Mac that currently has MacOS High Sierra. when I tried to install from App Store, I get a popup stating that this version cannot be installed in this computer. Hav…

---

## [How to use a different image dataset, such as Stanford cars in CoreML](https://forums.kodeco.com/t/how-to-use-a-different-image-dataset-such-as-stanford-cars-in-coreml/91731)

<div class="topic-metadata">

**Author:** [@jamesblack975](https://forums.kodeco.com/u/jamesblack975)\
**Replies:** 1\
**Last updated:** [December 17, 2019, 10:26am UTC](https://forums.kodeco.com/t/how-to-use-a-different-image-dataset-such-as-stanford-cars-in-coreml/91731 "2019-12-17T10:26:43Z")

</div>

I was following along with the Multi-snack model and I decided I wanted to create my own model, so I downloaded https://ai.stanford.edu/~jkrause/cars/car\_dataset.html and tried to create a model. It takes a while when I …

---

## [MLModel -\> Tensorflow](https://forums.kodeco.com/t/mlmodel-tensorflow/89263)

<div class="topic-metadata">

**Author:** [@kschlagel](https://forums.kodeco.com/u/kschlagel)\
**Replies:** 1\
**Last updated:** [November 25, 2019, 10:00pm UTC](https://forums.kodeco.com/t/mlmodel-tensorflow/89263 "2019-11-25T22:00:10Z")

</div>

Fantastic book! Just curious - is there a way to convert a CoreML model into a Tensorflow model? I know the tooling exists for Tensorflow → CoreML, but curious about the other way around… Thanks!

---

## [Errata for Machine Learning by Tutorials, 2nd Edition](https://forums.kodeco.com/t/errata-for-machine-learning-by-tutorials-2nd-edition/83650)

<div class="topic-metadata">

**Author:** [@chrisrazeware](https://forums.kodeco.com/u/chrisrazeware)\
**Replies:** 13\
**Last updated:** [November 19, 2019, 4:44pm UTC](https://forums.kodeco.com/t/errata-for-machine-learning-by-tutorials-2nd-edition/83650 "2019-11-19T16:44:34Z")

</div>

Found an issue in Machine Learning by Tutorials, 2nd edition? Post it here!

---

## [Random Numbers in Swift 5](https://forums.kodeco.com/t/random-numbers-in-swift-5/77077)

<div class="topic-metadata">

**Author:** [@praxon48](https://forums.kodeco.com/u/praxon48)\
**Replies:** 2\
**Last updated:** [October 3, 2019, 9:31am UTC](https://forums.kodeco.com/t/random-numbers-in-swift-5/77077 "2019-10-03T09:31:40Z")

</div>

Does any body knows if GameplayKit can generate true random numbers? Does swift 5 has any function to create true random numbers? Thank you!

---

## [Chapter 4 Challenges](https://forums.kodeco.com/t/chapter-4-challenges/71145)

<div class="topic-metadata">

**Author:** [@praxon48](https://forums.kodeco.com/u/praxon48)\
**Replies:** 2\
**Last updated:** [July 9, 2019, 2:46am UTC](https://forums.kodeco.com/t/chapter-4-challenges/71145 "2019-07-09T02:46:27Z")

</div>

The following is what I have done. I need some validation in order to know if I did the challenge correctly in order to continue with the eBook, any help with this matter will be appreciated. command: conda create -n tf…

---

## [Chapter 4 page 135](https://forums.kodeco.com/t/chapter-4-page-135/71118)

<div class="topic-metadata">

**Author:** [@praxon48](https://forums.kodeco.com/u/praxon48)\
**Replies:** 4\
**Last updated:** [July 9, 2019, 2:14am UTC](https://forums.kodeco.com/t/chapter-4-page-135/71118 "2019-07-09T02:14:07Z")

</div>

I have the following errors after entering the command in the terminal: pip install -U turicreate 93 packages available not 105 as indicated in the book. It looks that coremltools was not installed by pip, it …

---

## [Missing Diagram for Attention in Chapter 16](https://forums.kodeco.com/t/missing-diagram-for-attention-in-chapter-16/75671)

<div class="topic-metadata">

**Author:** [@karakots](https://forums.kodeco.com/u/karakots)\
**Replies:** 1\
**Last updated:** [July 6, 2019, 8:43am UTC](https://forums.kodeco.com/t/missing-diagram-for-attention-in-chapter-16/75671 "2019-07-06T08:43:26Z")

</div>

On page 503, the text “The weights are often visualized as attention maps, like in the following image:” does not have a diagram that follow after it. The next text describes details of the missing diagram. “There’s a …

[Next page](https://forums.kodeco.com/c/books/machine-learning-by-tutorials/46.md?page=1)
