Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dec1costello authored Oct 13, 2024
1 parent b13a214 commit 29a4edc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Streamlit/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@
with open("Streamlit/results.txt", 'w') as outfile:
outfile.write("Training variance explained: %2.1f%%\n" % train_score)
outfile.write("Test variance explained: %2.1f%%\n" % test_score)
print("Successfully wrote to results.txt")
except Exception as e:
print(f"Failed to write to results.txt: {e}")


with open("Streamlit/results.txt", 'r') as outfile:
contents = outfile.read()
print("Contents of results.txt:")
print(contents)


##########################################
##### PLOT FEATURE IMPORTANCE ############
Expand Down

1 comment on commit 29a4edc

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Training variance explained: 33.0%
Test variance explained: 32.0%

Please sign in to comment.