clairvoyant icon indicating copy to clipboard operation
clairvoyant copied to clipboard

Project dependencies have API risk issues

Open PyDeps opened this issue 2 years ago • 1 comments

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.

PyDeps avatar Jul 14 '22 18:07 PyDeps

Thanks, yes please submit a pull request.

anfederico avatar Jul 24 '22 13:07 anfederico