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

@ -139,15 +139,6 @@ namespace MLPP{
}
// 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
std::string Data::toLower(std::string text){
@ -564,4 +555,4 @@ namespace MLPP{
return outputSet;
}
}
}