You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now it seems tensorflow, numpy, and pandas are only needed for CsvDataAccumulator which seems to be a Machine Learning inclined feature. It would be nice if the catanatron could come with the simulator without having to include heavy dependencies like these (tensorflow, numpy, and pandas). Actually, maybe even without including rich or click.
This issue is to study and think about how could we structure the codebase so that people could use the simulator by just pip install catanatron and something like:
fromcatanatronimportRandomPlayer, Color, play_batch# Play a simple 4v4 gameplayers= [
RandomPlayer(Color.RED),
RandomPlayer(Color.BLUE),
RandomPlayer(Color.WHITE),
RandomPlayer(Color.ORANGE),
]
results=play_batch(100, players) # simulates 100 games
or so.
Maybe have a catanatron_cli package that uses this core play_batch and includes the click and rich libraries to do its thing? Maybe another catanatron_ai that includes the ML-based features like the CsvDataAccumulator and the AI-based players that depend on tensorflow, numpy, and pandas?
This would help with slow startup time #208 and would make it easier to adopt in M1 machines where tensorflow is a little more involved to install. Open to thoughts.
The text was updated successfully, but these errors were encountered:
Right now it seems tensorflow, numpy, and pandas are only needed for
CsvDataAccumulator
which seems to be a Machine Learning inclined feature. It would be nice if the catanatron could come with the simulator without having to include heavy dependencies like these (tensorflow, numpy, and pandas). Actually, maybe even without including rich or click.This issue is to study and think about how could we structure the codebase so that people could use the simulator by just
pip install catanatron
and something like:or so.
Maybe have a catanatron_cli package that uses this core
play_batch
and includes theclick
andrich
libraries to do its thing? Maybe another catanatron_ai that includes the ML-based features like theCsvDataAccumulator
and the AI-based players that depend on tensorflow, numpy, and pandas?This would help with slow startup time #208 and would make it easier to adopt in M1 machines where tensorflow is a little more involved to install. Open to thoughts.
The text was updated successfully, but these errors were encountered: