#(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)

tight gyro
#

i have an assignment i gotta do and i honestly have no clue how to approach it (there's a handout showing what to do, but i still wouldn't understand anything id be doing). time can be discussed

dawn eagleBOT
#

(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>

tight gyro
#

im willing to pay btw

torpid willow
tight gyro
#

also yes ik my college is written at the bottom

#

@torpid willow

torpid willow
#

ok no. xD

tight gyro
#

yo

#

ive started working on it but i have no clue what to do exactly so the offer is still open

tight gyro
#

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

tight gyro
# tight gyro

all the data is provided in the "references" in the final page of this document

tight gyro
#

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