Re: Dl4jMlpClassifier stuck on Building Model, CLI showing NoClassDefFoundError
Michael Hall <[email protected]> Sun, 29 Sep 2024 20:21:34 -0500
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <[email protected]> |
--===============4971101090592560263==
Content-Type: multipart/alternative;
boundary="Apple-Mail=_5451457D-97C4-4238-B1DF-70C3E7EB1123"
--Apple-Mail=_5451457D-97C4-4238-B1DF-70C3E7EB1123
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=utf-8
It works for me in the Explorer GUI. I assume intel emulator.
I=E2=80=99m not quite sure how you are doing CLI.=20
Are you correctly loading the package?
For the Explorer GUI not working have you checked weka.log for any =
errors.
${user.home}/wekafiles/weka.log
I actually appear to also have a=E2=80=A6
${user.home}/wekafiles/wekaDeeplearning4j.log
[INFO ] 20:13:06.262 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [5/10] took =
00:00:00.048
[INFO ] 20:13:06.292 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [6/10] took =
00:00:00.028
[INFO ] 20:13:06.321 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [7/10] took =
00:00:00.028
[INFO ] 20:13:06.349 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [8/10] took =
00:00:00.027
[INFO ] 20:13:06.383 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [9/10] took =
00:00:00.033
[INFO ] 20:13:06.422 [Thread-7] weka.dl4j.listener.EpochListener - Epoch =
[10/10]
Train Set: =20
Loss: 1.377447
Accuracy: 0.8074
Precision: 0.8278
Recall: 0.8074
F1 Score: 0.8011
Precision, recall & F1: macro-averaged (equally weighted avg. of 3 =
classes)
0 1 2
----------
45 0 0 | 0 =3D 0
0 24 21 | 1 =3D 1
0 5 40 | 2 =3D 2
Confusion matrix format: Actual (rowClass) predicted as (columnClass) N =
times
[INFO ] 20:13:06.422 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [10/10] took =
00:00:00.038
> On Sep 29, 2024, at 8:01=E2=80=AFPM, Eibe Frank =
<[email protected]> wrote:
>=20
> We still haven=E2=80=99t made an ARM Mac version of =
wekaDeeplearning4j.
> =20
> You could try downloading and running the Intel Mac version of WEKA, =
which might run through the emulator available on ARM Macs, and =
wekaDeeplearning4j *may* work (I have not tried this).=20
> =20
> Cheers,
> Eibe
> =20
> From: Erik @ Weka mailinglist <[email protected] =
<mailto:[email protected]>>
> Date: Monday, 30 September 2024 at 10:26=E2=80=AFAM
> To: [email protected] <mailto:[email protected]> =
<[email protected] <mailto:[email protected]>>
> Subject: [Wekalist] Dl4jMlpClassifier stuck on Building Model, CLI =
showing NoClassDefFoundError
>=20
> [Some people who received this message don't often get email from =
[email protected] <mailto:[email protected]>. Learn why this is =
important athttps://aka.ms/LearnAboutSenderIdentification ]
>=20
> I am trying to run the DeepLearning4J classifier from the GUI, and am =
getting no results. The status bar is showing =E2=80=9CBuilding =
model=E2=80=9D.
>=20
> When I open a CLI window before running, following error shows:
>=20
> Exception in thread "Thread-13" java.lang.NoClassDefFoundError: Could =
not initialize class org.nd4j.linalg.factory.Nd4j
> =20
--Apple-Mail=_5451457D-97C4-4238-B1DF-70C3E7EB1123
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=utf-8
<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;">It works for =
me in the Explorer GUI. I assume intel =
emulator.<div><br></div><div>I=E2=80=99m not quite sure how you are =
doing CLI. </div><div><br></div><div>Are you correctly loading the =
package?</div><div><br></div><div>For the Explorer GUI not working have =
you checked weka.log for any =
errors.</div><div><br></div><div>${user.home}/wekafiles/weka.log</div><div=
><br></div><div>I actually appear to also have =
a=E2=80=A6</div><div><br></div><div>${user.home}/wekafiles/wekaDeeplearnin=
g4j.log</div><div><br></div><div><div>[INFO ] 20:13:06.262 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [5/10] took =
00:00:00.048</div><div>[INFO ] 20:13:06.292 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [6/10] took =
00:00:00.028</div><div>[INFO ] 20:13:06.321 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [7/10] took =
00:00:00.028</div><div>[INFO ] 20:13:06.349 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [8/10] took =
00:00:00.027</div><div>[INFO ] 20:13:06.383 [Thread-7] =
weka.classifiers.functions.Dl4jMlpClassifier - Epoch [9/10] took =
00:00:00.033</div><div>[INFO ] 20:13:06.422 [Thread-7] =
weka.dl4j.listener.EpochListener - Epoch [10/10]</div><div>Train Set: =
</div><div> Loss: =
1.377447</div><div> Accuracy: =
0.8074</div><div> Precision: =
0.8278</div><div> Recall: =
0.8074</div><div> F1 Score: =
0.8011</div><div>Precision, recall & F1: macro-averaged =
(equally weighted avg. of 3 classes)</div><div> 0 1 =
2</div><div>----------</div><div> 45 0 0 | 0 =3D =
0</div><div> 0 24 21 | 1 =3D 1</div><div> 0 5 40 | 2 =3D=
2</div><div>Confusion matrix format: Actual (rowClass) predicted as =
(columnClass) N times</div><div><br></div><div>[INFO ] 20:13:06.422 =
[Thread-7] weka.classifiers.functions.Dl4jMlpClassifier - Epoch [10/10] =
took 00:00:00.038</div><div><br><blockquote type=3D"cite"><div>On Sep =
29, 2024, at 8:01=E2=80=AFPM, Eibe Frank =
<[email protected]> wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div =
class=3D"WordSection1" style=3D"page: WordSection1; caret-color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><div style=3D"margin: 0cm; font-size: 12pt; =
font-family: Aptos, sans-serif;"><span style=3D"font-size: 11pt;">We =
still haven=E2=80=99t made an ARM Mac version of =
wekaDeeplearning4j.<o:p></o:p></span></div><div style=3D"margin: 0cm; =
font-size: 12pt; font-family: Aptos, sans-serif;"><span =
style=3D"font-size: 11pt;"><o:p> </o:p></span></div><div =
style=3D"margin: 0cm; font-size: 12pt; font-family: Aptos, =
sans-serif;"><span style=3D"font-size: 11pt;">You could try downloading =
and running the Intel Mac version of WEKA, which might run through the =
emulator available on ARM Macs, and wekaDeeplearning4j *<b>may</b>* work =
(I have not tried this).<span =
class=3D"Apple-converted-space"> </span><o:p></o:p></span></div><div =
style=3D"margin: 0cm; font-size: 12pt; font-family: Aptos, =
sans-serif;"><span style=3D"font-size: =
11pt;"><o:p> </o:p></span></div><div style=3D"margin: 0cm; =
font-size: 12pt; font-family: Aptos, sans-serif;"><span =
style=3D"font-size: 11pt;">Cheers,<o:p></o:p></span></div><div =
style=3D"margin: 0cm; font-size: 12pt; font-family: Aptos, =
sans-serif;"><span style=3D"font-size: =
11pt;">Eibe<o:p></o:p></span></div><div style=3D"margin: 0cm; font-size: =
12pt; font-family: Aptos, sans-serif;"><span style=3D"font-size: =
11pt;"><o:p> </o:p></span></div><div =
id=3D"mail-editor-reference-message-container"><div><div =
style=3D"border-width: 1pt medium medium; border-style: solid none none; =
border-color: rgb(181, 196, 223) currentcolor currentcolor; =
border-image: none; padding: 3pt 0cm 0cm;"><p class=3D"MsoNormal" =
style=3D"margin: 0cm 0cm 12pt; font-size: 12pt; font-family: Aptos, =
sans-serif;"><b><span style=3D"">From:<span =
class=3D"Apple-converted-space"> </span></span></b><span =
style=3D"">Erik @ Weka mailinglist <<a =
href=3D"mailto:[email protected]" style=3D"color: blue; =
text-decoration: =
underline;">[email protected]</a>><br><b>Date:<span =
class=3D"Apple-converted-space"> </span></b>Monday, 30 September =
2024 at 10:26</span><span style=3D"font-family: Arial, =
sans-serif;">=E2=80=AF</span><span style=3D"">AM<br><b>To:<span =
class=3D"Apple-converted-space"> </span></b><a =
href=3D"mailto:[email protected]" style=3D"color: blue; =
text-decoration: underline;">[email protected]</a><span =
class=3D"Apple-converted-space"> </span><<a =
href=3D"mailto:[email protected]" style=3D"color: blue; =
text-decoration: =
underline;">[email protected]</a>><br><b>Subject:<span =
class=3D"Apple-converted-space"> </span></b>[Wekalist] =
Dl4jMlpClassifier stuck on Building Model, CLI showing =
NoClassDefFoundError<o:p></o:p></span></p></div><div><div style=3D"margin:=
0cm; font-size: 12pt; font-family: Aptos, sans-serif;"><span =
style=3D"font-size: 11pt;">[Some people who received this message don't =
often get email from<span class=3D"Apple-converted-space"> </span><a =
href=3D"mailto:[email protected]" style=3D"color: blue; =
text-decoration: underline;">[email protected]</a>. Learn why this =
is important at<a href=3D"https://aka.ms/LearnAboutSenderIdentification" =
style=3D"color: blue; text-decoration: =
underline;">https://aka.ms/LearnAboutSenderIdentification</a><span =
class=3D"Apple-converted-space"> </span>]<br><br>I am trying to run =
the DeepLearning4J classifier from the GUI, and am getting no results. =
The status bar is showing =E2=80=9CBuilding model=E2=80=9D.<br><br>When =
I open a CLI window before running, following error =
shows:<br><br>Exception in thread "Thread-13" =
java.lang.NoClassDefFoundError: Could not initialize class =
org.nd4j.linalg.factory.Nd4j<br> </span></div></div></div></div></div=
></div></blockquote></div></div></body></html>=
--Apple-Mail=_5451457D-97C4-4238-B1DF-70C3E7EB1123--
--===============4971101090592560263==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
--===============4971101090592560263==--