mirror of
https://github.com/microsoft/qlib.git
synced 2026-07-14 00:06:58 +08:00
Remove un-used imports
This commit is contained in:
@@ -10,11 +10,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -10,12 +10,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -10,12 +10,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -9,12 +9,7 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|||||||
@@ -10,12 +10,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -9,12 +9,7 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -10,12 +10,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -9,12 +9,7 @@ import os
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
unpack_archive_with_buffer,
|
|
||||||
save_multiple_parts_file,
|
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ from .pytorch_utils import count_parameters
|
|||||||
from ...model.base import Model
|
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
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
from ...workflow import R
|
from ...workflow import R
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
@@ -8,10 +8,7 @@ import numpy as np
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
from typing import Text, Union
|
from typing import Text, Union
|
||||||
import copy
|
import copy
|
||||||
from ...utils import (
|
from ...utils import get_or_create_path
|
||||||
get_or_create_path,
|
|
||||||
drop_nan_by_y_index,
|
|
||||||
)
|
|
||||||
from ...log import get_module_logger
|
from ...log import get_module_logger
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
|
|||||||
Reference in New Issue
Block a user