Skip to content

Fix adaptation issue #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: release_v1.1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions paddlets/utils/backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from typing import List, Dict, Any, Callable, Optional, Tuple, Union
import math
from collections import defaultdict
from collections.abc import Iterable
try:
from collections import Iterable
except ImportError:
from collections.abc import Iterable

import pandas as pd
import numpy as np
Expand Down Expand Up @@ -58,7 +61,7 @@ def backtest(data: TSDataset,
"""
from paddlets.pipeline import Pipeline
if isinstance(model, Pipeline):
#如果是None, 后续的check会报错,这里就不做重复处理了
# If None,the checking will be error,it will not handle again.
if model._model_exist:
model_in_chunk_len = model._model._in_chunk_len
model_skip_chunk_len = model._model._skip_chunk_len
Expand Down