Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
2f190f74
Commit
2f190f74
authored
Mar 30, 2018
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
give some warning message
parent
6916c684
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
processing.py
alphamind/data/processing.py
+3
-0
No files found.
alphamind/data/processing.py
View file @
2f190f74
...
@@ -9,6 +9,7 @@ from typing import Optional
...
@@ -9,6 +9,7 @@ from typing import Optional
from
typing
import
List
from
typing
import
List
import
numpy
as
np
import
numpy
as
np
from
alphamind.data.neutralize
import
neutralize
from
alphamind.data.neutralize
import
neutralize
from
alphamind.utilities
import
alpha_logger
def
factor_processing
(
raw_factors
:
np
.
ndarray
,
def
factor_processing
(
raw_factors
:
np
.
ndarray
,
...
@@ -29,6 +30,8 @@ def factor_processing(raw_factors: np.ndarray,
...
@@ -29,6 +30,8 @@ def factor_processing(raw_factors: np.ndarray,
if
post_process
:
if
post_process
:
for
p
in
post_process
:
for
p
in
post_process
:
if
p
.
__name__
==
'winsorize_normal'
:
alpha_logger
.
warning
(
"winsorize_normal normally should not be done after neutralize"
)
new_factors
=
p
(
new_factors
,
groups
=
groups
)
new_factors
=
p
(
new_factors
,
groups
=
groups
)
return
new_factors
return
new_factors
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment