Commit 03fe0703 authored by Avisek Naug's avatar Avisek Naug 🎨
Browse files

fix file removal

parent 718e0edc
# import modules # import modules
from helperfunctions import * from helperfunctions import *
import os
from dataGenerator import * from dataGenerator import *
from PredictionModel import * from PredictionModel import *
period = 12 # ie period*5 minutes eg 12*5 60 minutes period = 12 # ie period*5 minutes eg 12*5 60 minutes
# Remove add previous Results Plot + Log Plot # Remove previous Results Plot
import os
try: try:
os.mkdir('ResultsPlot') os.mkdir('ResultsPlot')
except FileExistsError: except FileExistsError:
pass files = os.listdir('ResultsPlot/')
for f in files:
os.remove('ResultsPlot/' + f)
# Remove model training log file infos
try: try:
os.mkdir('loginfo') os.mkdir('loginfo')
except FileExistsError: except FileExistsError:
pass files = os.listdir('loginfo/')
for f in files:
# Remove model training log file infos os.remove('loginfo/' + f)
files = os.listdir('loginfo/')
for f in files:
os.remove('loginfo/' + f)
# Create train and test data for training # Create train and test data for training
datapath = '1Hourdata.pkl' datapath = '1Hourdata.pkl'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment