# My Classify code crash the kernel?

**URL:** <https://community.wolfram.com/t/my-classify-code-crash-the-kernel/20123>\
**Category:** Questions\
**Tags:** data-science, machine-learning\
**Created:** [June 3, 2022, 5:40pm UTC](https://community.wolfram.com/t/my-classify-code-crash-the-kernel/20123 "2022-06-03T17:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameshwd74](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jameshwd74](https://community.wolfram.com/u/jameshwd74)\
**Post date:** [June 3, 2022, 5:40pm UTC](https://community.wolfram.com/t/my-classify-code-crash-the-kernel/20123/1 "2022-06-03T17:40:21Z")

</div>

Hi

I’m relatively new to Mathematica/Wolfram Desktop and learning the Classify function. Why would the following code cause the kernel to crash?

```
list0 = Table[RandomReal[{0, 1}] -> 0, 1000];
list1 = Table[RandomReal[{1, 2}] -> 1, 1000];
list2 = Table[RandomReal[{2, 3}] -> 2, 1000];
list3 = Table[RandomReal[{3, 4}] -> 3, 1000];
list4 = Table[RandomReal[{4, 5}] -> 4, 1000];
list5 = Table[RandomReal[{5, 6}] -> 5, 1000];
list6 = Table[RandomReal[{6, 7}] -> 6, 1000];
list7 = Table[RandomReal[{7, 8}] -> 7, 1000];
list8 = Table[RandomReal[{8, 9}] -> 8, 1000];
list9 = Table[RandomReal[{9, 10}] -> 9, 1000];
list = Join[list0, list1, list2, list3, list4, list5, list6, list7, 
  list8, list9]
cf = Classify[list]

```

My system is: MacBook Air M1 16GB. Wolfram Desktop 13.0.1

Is there a sample limit to the Classify function?

Thanks

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [June 3, 2022, 6:04pm UTC](https://community.wolfram.com/t/my-classify-code-crash-the-kernel/20123/2 "2022-06-03T18:04:04Z")

</div>

I’m using an 8GB MacBook Pro and it doesn’t crash it.

I haven’t used Classify before, but based on the documentation, this looks to me like a cleaner implementation:

```
data = Table[i -> RandomReal[{i, 1 + i}, 1000], {i, 0, 9}]
Classify[Association[data]]

```

Maybe try that form or one of the others in the documentation? But the obvious difference is that you’re on M1, so maybe we can get other M1 users to test…

---

<div class="post-metadata">

**Author:** ![jameshwd74](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@jameshwd74](https://community.wolfram.com/u/jameshwd74)\
**Post date:** [June 3, 2022, 6:22pm UTC](https://community.wolfram.com/t/my-classify-code-crash-the-kernel/20123/3 "2022-06-03T18:22:47Z")

</div>

Thanks Eric.

I think it was my installation. The kernel exited trying the code above too. So I deleted my ~/Library/WolframDesktop contents and restarted. That seems to have resolved the issue! I even increased the list size to 200k items and it worked. :o)
