#(nimsy) yo does anyone proficient in simple c++ ai learning wanna tutor me for like 2 hours tomorr
29 messages · Page 1 of 1 (latest)
(nimsy) yo does anyone proficient in simple c++ ai learning wanna tutor me for like 2 hours tomorr
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
im willing to pay btw
Yo, what exactly do you want to know
ok no. xD
yo
ive started working on it but i have no clue what to do exactly so the offer is still open
ok
so i got chatgpt to make a lot of it
it's just not reading the data correctly i dont think, and chat gpt is having trouble finding the solution
all the data is provided in the "references" in the final page of this document
yo so im having a problem
and that problem is
this function isn't correctly reading the "label"
void Classifier::ReadDigits(char* filename, CDigit* data, int num_images) {
ifstream file(filename);
if (file.is_open()) {
for (int i = 0; i < num_images; i++) {
for (int j = 0; j < IMG_SIZE; j++) {
char comma;
int pixel_value;
if (file >> pixel_value >> comma) {
data[i][j] = static_cast<unsigned char>(pixel_value);
}
}
int label; // Change the type of label to int
if (file >> label) {
data[i].Label() = static_cast<char>(label); // Assign the label after casting to char
}
}
file.close();
}
}
it's always returning 0 for some reason, when it should return the label of the training data
the training data is labeled with hand-drawn numbers, but for some reason, i can't seem to read the label itself
for some reason the program thinks the label it's reading is 0