mirror of
https://github.com/Doctorado-ML/FImdlp.git
synced 2025-08-17 08:25:51 +00:00
Update samples
This commit is contained in:
@@ -10,7 +10,7 @@ int main(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
ArffFiles file;
|
ArffFiles file;
|
||||||
vector<string> lines;
|
vector<string> lines;
|
||||||
string path = "../fimdlp/testcpp/datasets/";
|
string path = "../src/fimdlp/testcpp/datasets/";
|
||||||
map<string, bool > datasets = {
|
map<string, bool > datasets = {
|
||||||
{"mfeat-factors", true},
|
{"mfeat-factors", true},
|
||||||
{"iris", true},
|
{"iris", true},
|
||||||
|
@@ -18,9 +18,9 @@ ap.add_argument("--proposal", action="store_true")
|
|||||||
ap.add_argument("--original", dest="proposal", action="store_false")
|
ap.add_argument("--original", dest="proposal", action="store_false")
|
||||||
ap.add_argument("dataset", type=str, choices=datasets.keys())
|
ap.add_argument("dataset", type=str, choices=datasets.keys())
|
||||||
args = ap.parse_args()
|
args = ap.parse_args()
|
||||||
relative = "" if os.path.isdir("fimdlp") else ".."
|
relative = "" if os.path.isdir("src") else ".."
|
||||||
file_name = os.path.join(
|
file_name = os.path.join(
|
||||||
relative, "fimdlp", "testcpp", "datasets", args.dataset
|
relative, "src", "fimdlp", "testcpp", "datasets", args.dataset
|
||||||
)
|
)
|
||||||
data = arff.loadarff(file_name + ".arff")
|
data = arff.loadarff(file_name + ".arff")
|
||||||
df = pd.DataFrame(data[0])
|
df = pd.DataFrame(data[0])
|
||||||
|
Reference in New Issue
Block a user