baseball-trajectory
User Guide
Reference
API
/
data.refresh_cache()
API Index
Data
data.refresh_cache
data.get_player_career_totals
data.search_player
data.get_batting_career
data.get_pitching_career
Model
model.is_lower_better
model.fit_player_curve
model.fit_aging_curve
model.predict_curve
model.summarize_career
model.BATTING_METRICS
model.PITCHING_METRICS
Similarity
similarity.position_value
similarity.similarity_score
similarity.find_similar_players
similarity.POSITION_VALUE
Plots
plots.predict_curve
plots.plot_trajectory
plots.plot_empty
plots.plot_trajectories_facet
plots.plot_peak_vs_curvature
data.refresh_cache()
Clear the in-memory cache; the next call re-fetches from MLB Stats API.
Usage
data
.
refresh_cache
()