This commit is contained in:
matixezor 2021-05-19 12:26:03 +02:00
parent 8a24258a06
commit 383293c5e7
2 changed files with 4 additions and 2596 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,9 +1,10 @@
import os
import json import json
from typing import List from typing import List
from itertools import product from itertools import product
from const import main_path
data_path = os.path.dirname(os.path.abspath(__file__))
visibility = ('bad', 'medium', 'good') visibility = ('bad', 'medium', 'good')
stability = ('unstable', 'stable') stability = ('unstable', 'stable')
@ -66,7 +67,7 @@ def main():
json.dump(data_set, outfile) json.dump(data_set, outfile)
with open(f'{main_path}/src/machine_learning/data.txt', 'r') as f: with open(f'{data_path}/data.txt', 'r') as f:
data = f.read() data = f.read()
json_data = json.loads(data) json_data = json.loads(data)