Closed kongzii closed 1 month ago
The changes in this pull request involve significant restructuring of the data_models.py
file, including the modification of the QuestionType
enum, the introduction of new classes (AggregationItem
, Aggregation
, Aggregations
, and Question
), and the removal of several existing classes (CommunityPrediction
, Prediction
, and UserPredictions
). Additionally, the MetaculusQuestion
class has been updated to reflect new attributes and property methods. The metaculus.py
file also sees updates to the MetaculusAgentMarket
class, particularly in the from_data_model
method. Lastly, the test suite for AgentMarket
has been adjusted for improved functionality.
File Path | Change Summary |
---|---|
prediction_market_agent_tooling/markets/metaculus/data_models.py |
- Modified QuestionType enum to include only binary . - Removed CommunityPrediction , Prediction , and UserPredictions classes. - Added AggregationItem , Aggregation , and Aggregations classes. - Introduced Question class with references to new classes. - Updated MetaculusQuestion with new attributes and methods. |
prediction_market_agent_tooling/markets/metaculus/metaculus.py |
- Updated MetaculusAgentMarket class to streamline attribute assignment from MetaculusQuestion . - Altered logic in from_data_model method for attribute assignments. |
tests/markets/test_markets.py |
- Increased limit in test_get_markets from 10 to 100. - Corrected indentation in test_get_markets . |
data_models.py
related to the QuestionType
enum and the introduction of new classes like AggregationItem
, Aggregation
, and Question
are relevant to the modifications made in the same file in this PR, which also deals with data models for Metaculus questions and predictions.api.py
and data_models.py
for Metaculus, specifically updating the get_questions
function and introducing a new class MetaculusQuestions
, which relates to the overall structure and functionality of the Metaculus data models being altered in the main PR.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Based on https://www.metaculus.com/notebooks/28595/updates-to-metaculus-api/ and my observations from their responses.