Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
losses = [] # to keep track of the epoch lossese | |
slope_list = [] # to keep track of the slope learnt by the model | |
intercept_list = [] # to keep track of the intercept learnt by the model | |
EPOCHS = 2500 | |
print('\nTRAINING...') | |
for epoch in range(EPOCHS): | |
# We need to clear the gradients of the optimizer before running the back-propagation in PyTorch | |
optimizer.zero_grad() | |