Updated Data.cpp

This commit is contained in:
novak-99 2021-05-24 21:23:35 -07:00 committed by GitHub
parent 9072e593de
commit 1015009a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,15 +140,6 @@ namespace MLPP{
// Images // Images
void Data::getImage(std::string fileName, std::vector<double>& image){
std::ifstream img(fileName, std::ios::binary);
if(!img.is_open()){
std::cout << "The file failed to open." << std::endl;
}
std::vector<double> v{std::istreambuf_iterator<char>{img}, {}};
image = v;
}
// TEXT-BASED & NLP // TEXT-BASED & NLP
std::string Data::toLower(std::string text){ std::string Data::toLower(std::string text){
for(int i = 0; i < text.size(); i++){ for(int i = 0; i < text.size(); i++){