Skip to content
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

Project dependencies have API risk issues #37

Open
PyDeps opened this issue Jul 14, 2022 · 1 comment
Open

Project dependencies have API risk issues #37

PyDeps opened this issue Jul 14, 2022 · 1 comment

Comments

@PyDeps
Copy link

PyDeps commented Jul 14, 2022

Hi, In clairvoyant, inappropriate dependency versioning constraints can cause risks.

Below are the dependencies and version constraints that the project is using

bokeh>=0.12.4
matplotlib>=2.0.0
numpy>=1.11.3
pandas>=0.19.2
scikit-learn>=0.18.1

The version constraint == will introduce the risk of dependency conflicts because the scope of dependencies is too strict.
The version constraint No Upper Bound and * will introduce the risk of the missing API Error because the latest version of the dependencies may remove some APIs.

After further analysis, in this project,
The version constraint of dependency scikit-learn can be changed to >=0.17b1,<=0.21.3.

The above modification suggestions can reduce the dependency conflicts as much as possible,
and introduce the latest version as much as possible without calling Error in the projects.

The invocation of the current project includes all the following methods.

The calling methods from the matplotlib
Axes.scatter
Axes.set_ylim
pyplot.savefig
Axes.contourf
Axes.set_xlim
Axes.set_title
pyplot.figure
pyplot.subplot
The calling methods from the scikit-learn
RobustScaler.fit
The calling methods from the all methods
setup
ClosedTrade
self.model.predict
pyplot.savefig
Axes.contourf
TypeError
self.account.Equity.append
print
super.__init__
exchange.Account
round
RobustScaler.fit
xx.min
pyplot.figure
copy.deepcopy
enumerate
pyplot.subplot
self.account.TotalValue
vstack
helpers.change
X.append
yy.max
yy.min
LongPosition
Axes.set_xlim
show
Engine.start
super
SVC
Axes.set_title
output_file
format
helpers.profit
change
Model
range
len
self.account.PurgePositions
self.Positions.append
Engine.__init__
self.OpenedTrades.append
figure
sys.path.append
self.model.fit
self.model.svc.fit
self.model.svc.decision_function
Z.reshape
hstack
self.svc.fit
self.svc.predict_proba
xx.max
X.min
meshgrid
ShortPosition
p.line
p.Show
Temporary.ClosePosition
self.model.scaler.transform
Axes.scatter
y.append
Position.Close
float
logic
ValueError
Axes.set_ylim
arange
self.buyStats
RobustScaler
self.ClosedTrades.append
X.max
OpenedTrade
yy.ravel
xx.ravel
ListedColormap
self.scaler.transform
self.sellStats

@developer
Could please help me check this issue?
May I pull a request to fix it?
Thank you very much.

@anfederico
Copy link
Owner

Thanks, yes please submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants