fix more
This commit is contained in:
parent
8a24258a06
commit
383293c5e7
File diff suppressed because one or more lines are too long
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user