---
title: "Discussion on \"How to Create and Train a Machine Learning Model from Scratch\" | Hashnode"
description: "Discussion on \"How to Create and Train a Machine Learning Model from Scratch\". Building and Training a Machine Learning Model from Scratch: A Beginner's Guide with Real-World Examples"
url: "https://hashnode.com/posts/how-to-create-and-train-a-machine-learning-model-from-scratch/66dec04270ba3c6bf865b069"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Create and Train a Machine Learning Model from Scratch](https://blog.bytescrum.com/how-to-create-and-train-a-machine-learning-model-from-scratch?utm_source=hashnode&utm_medium=feed)

Building and Training a Machine Learning Model from Scratch: A Beginner's Guide with Real-World Examples

Sep 9, 2024 · 5 min read · blog.bytescrum.com  
Read the article

-   [#build-model](https://hashnode.com/tag/build-model)
-   [#python](https://hashnode.com/tag/python)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#modeltraining](https://hashnode.com/tag/modeltraining)
-   [#pandas](https://hashnode.com/tag/pandas)
-   [#scikit-learn](https://hashnode.com/tag/scikit-learn)
-   [#matplotlib](https://hashnode.com/tag/matplotlib)
-   [#seaborn](https://hashnode.com/tag/seaborn)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#bytescrum](https://hashnode.com/tag/bytescrum)

## Written by

[ByteScrum Technologies](https://hashnode.com/@bytescrum)

@bytescrum · India

  
[View profile](https://hashnode.com/@bytescrum)

Software Development Company

Our company comprises seasoned professionals, each an expert in their field. Customer satisfaction is our top priority, exceeding clients' needs. We ensure competitive pricing and quality in web and mobile development without compromise.

## Responses 1

Markdown supported · ⌘↵ to post

[Webster Alex T](https://hashnode.com/@Alex0116)

[Sep 14, 2024](https://hashnode.com/posts/how-to-create-and-train-a-machine-learning-model-from-scratch/66dec04270ba3c6bf865b069/comment/66e52c53a5056b645322aa31)

Hi. Because I’m really new at this. Having an issue and need to ask for help. I am getting this error from line

accuracy = accuracy\_score(y\_test, x\_test)

ValueError: Classification metrics can’t handle a mix of multiclass and continuous-multioutput targets

Any help is appreciated. Alex.
