Fertisch aber HolladieWaldfee

This commit is contained in:
Benedikt Sopp 2025-11-25 10:51:12 +01:00
parent c6f9776cd7
commit 943525ef8b
14 changed files with 41 additions and 9 deletions

View File

@ -131,4 +131,6 @@ void clearSeries(GrayScaleImageSeries *series)
free(series->labels);
free(series);
}
}
}
//HolladieWaldfee

View File

@ -21,3 +21,5 @@ GrayScaleImageSeries *readImages(const char *path);
void clearSeries(GrayScaleImageSeries *series);
#endif
//HolladieWaldfee

View File

@ -169,4 +169,6 @@ int main()
RUN_TEST(test_read_GrayScale_Pixel);
return UNITY_END();
}
}
//HolladieWaldfee

4
main.c
View File

@ -65,4 +65,6 @@ int main(int argc, char *argv[])
}
return exitCode;
}
}
//HolladieWaldfee

View File

@ -64,3 +64,4 @@ else
rm -f *.o mnist runMatrixTests runNeuralNetworkTests runImageInputTests
endif
//HolladieWaldfee

View File

@ -175,4 +175,7 @@ Matrix multiply(const Matrix matrix1, const Matrix matrix2)
}
}
return result;
}
}
//HolladieWaldfee

View File

@ -25,3 +25,6 @@ Matrix multiply(const Matrix matrix1, const Matrix matrix2);
#endif
//HolladieWaldfee

View File

@ -193,4 +193,7 @@ int main()
RUN_TEST(test_setMatrixAtFailsOnIndicesOutOfRange);
return UNITY_END();
}
}
//HolladieWaldfee

View File

@ -170,4 +170,5 @@ void showMnist(unsigned int windowWidth, unsigned int windowHeight, const GraySc
free(container);
free(navigationLabel);
free(predictionLabel);
}
}
//HolladieWaldfee

View File

@ -5,4 +5,6 @@
void showMnist(unsigned int windowWidth, unsigned int windowHeight, const GrayScaleImageSeries *series, const unsigned char predictions[]);
#endif
#endif
//HolladieWaldfee

View File

@ -265,4 +265,6 @@ void clearModel(NeuralNetwork *model)
model->layers = NULL;
model->numberOfLayers = 0;
}
}
}
//HolladieWaldfee

View File

@ -24,3 +24,6 @@ unsigned char *predict(const NeuralNetwork model, const GrayScaleImage images[],
void clearModel(NeuralNetwork *model);
#endif
//HolladieWaldfee

View File

@ -280,4 +280,7 @@ int main()
RUN_TEST(test_predictReturnsCorrectLabels);
return UNITY_END();
}
}
//HolladieWaldfee

View File

@ -8,3 +8,6 @@ typedef int (*UnitTestType)(void);
#define RUN_UNIT_TEST(fct) printf("%80s: %d\n", #fct, fct())
#endif
//HolladieWaldfee