mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-15 00:36:55 +08:00
Remove unused imports
This commit is contained in:
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
import torch.optim as optim
|
import torch.optim as optim
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
import torch.optim as optim
|
import torch.optim as optim
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -9,14 +9,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ from ...model.base import Model
|
|||||||
from ...data.dataset import DatasetH
|
from ...data.dataset import DatasetH
|
||||||
from ...data.dataset.handler import DataHandlerLP
|
from ...data.dataset.handler import DataHandlerLP
|
||||||
from ...utils import unpack_archive_with_buffer, save_multiple_parts_file, get_or_create_path, drop_nan_by_y_index
|
from ...utils import unpack_archive_with_buffer, save_multiple_parts_file, get_or_create_path, drop_nan_by_y_index
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
from ...workflow import R
|
from ...workflow import R
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8,14 +8,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -7,14 +7,13 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from sklearn.metrics import roc_auc_score, mean_squared_error
|
|
||||||
from ...utils import (
|
from ...utils import (
|
||||||
unpack_archive_with_buffer,
|
unpack_archive_with_buffer,
|
||||||
save_multiple_parts_file,
|
save_multiple_parts_file,
|
||||||
get_or_create_path,
|
get_or_create_path,
|
||||||
drop_nan_by_y_index,
|
drop_nan_by_y_index,
|
||||||
)
|
)
|
||||||
from ...log import get_module_logger, TimeInspector
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
Reference in New Issue
Block a user