mirror of
https://github.com/Relintai/MLPP.git
synced 2025-02-04 15:55:53 +01:00
Updated Data.cpp
This commit is contained in:
parent
9072e593de
commit
1015009a90
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user