mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
merged
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
|
||||
PyTorch-Lightning Documentation
|
||||
=============================
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
Callbacks
|
||||
====================================
|
||||
Callbacks supported by Lightning
|
||||
|
||||
"""
|
||||
|
||||
import os
|
||||
@@ -95,7 +94,6 @@ class EarlyStopping(Callback):
|
||||
|
||||
early_stopping = EarlyStopping('val_loss')
|
||||
Trainer(early_stop_callback=early_stopping)
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, monitor='val_loss',
|
||||
|
||||
@@ -1228,7 +1228,6 @@ def convert(val):
|
||||
constructors = [int, float, str]
|
||||
|
||||
if type(val) is str:
|
||||
|
||||
if val.lower() == 'true':
|
||||
return True
|
||||
if val.lower() == 'false':
|
||||
|
||||
@@ -48,9 +48,6 @@ class Trainer(TrainerIOMixin,
|
||||
TrainerTrainLoopMixin,
|
||||
TrainerCallbackConfigMixin,
|
||||
):
|
||||
r"""
|
||||
Main trainer class
|
||||
"""
|
||||
def __init__(
|
||||
self,
|
||||
logger=True,
|
||||
|
||||
Reference in New Issue
Block a user