-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
As everyone can see the solution is less than 10 lines of code.
As stated clearly in the text, all those who copied and pasted the ridicolous code produced AI will receive a penalization
An example of ridicolous and WRONG code for Exercise 1 is below
load datiAz
booComplete = all(~ismissing(datiAz), 2);
Amb = datiAz(booComplete,:);
medN = median(Amb.Ndipendenti);
madN = mad(Amb.Ndipendenti, 1);
zN = (Amb.Ndipendenti - medN) ./ (1.4826*madN);
medF = median(Amb.Fatturato);`
madF = mad(Amb.Fatturato, 1);
zF = (Amb.Fatturato - medF) ./ (1.4826*madF);
Amb.Ndipendenti = zN;
Amb.Fatturato = zF;
An example of ridicolous code create by AI for Exercise 4 is
%Exercise 4
disc_Fatturato = discretize(Amb.Fatturato, [-1 1 3], 'IncludedEdge','right');
disc_Fatturato = categorical(disc_Fatturato, 1:2, ["[-1, 1)" "[1, 3]"]);
disc_Ndipendenti = discretize(Amb.Ndipendenti, [-2 1 4], 'IncludedEdge','right');
disc_Ndipendenti = categorical(disc_Ndipendenti, 1:2, ["[-2, 1)" "[1, 4]"]);
T = Amb;
T.disc_Fatturato = disc_Fatturato;
T.disc_Ndipendenti = disc_Ndipendenti;
pv = pivot(T, ...
Rows = ["disc_Fatturato","disc_Ndipendenti"], ...
Columns = "Area", ...
Method = "count", ...
OutputFormat = "flat");
disp(pv)
As I keep correcting the exams I will publish the ridicolous code that I find
Metadata
Metadata
Assignees
Labels
No labels