Spaces:
Paused
Paused
Update Assign12_Model
Browse files270 unmodified lines271272273274275276277270 unmodified linesif best_loss < target_loss:torch.save(model.state_dict(), "trained_model.pth")print(f"Target loss reached: {best_loss:.4f}. Model saved.")breakprint( loss )270 unmodified lines271272273274275276270 unmodified linesif best_loss < target_loss:torch.save(model.state_dict(), "trained_model.pth")print(f"Target loss reached: {best_loss:.4f}. Model saved.")print( loss )
Assign12_Model.py-1