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

Remove duplicated functions available in PMAT #121

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions prediction_prophet/benchmark/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from prediction_prophet.autonolas.research import EmbeddingModel
from prediction_prophet.autonolas.research import make_prediction, get_urls_from_queries
from prediction_prophet.autonolas.research import research as research_autonolas
from prediction_prophet.functions.evaluate_question import is_predictable
from prediction_prophet.functions.rephrase_question import rephrase_question
from prediction_prophet.functions.research import Research, research as prophet_research
from prediction_prophet.functions.search import search
Expand All @@ -26,6 +25,7 @@
from pydantic.types import SecretStr
from prediction_prophet.autonolas.research import Prediction as LLMCompletionPredictionDict
from prediction_market_agent_tooling.tools.langfuse_ import observe
from prediction_market_agent_tooling.tools.is_predictable import is_predictable_binary
from prediction_market_agent_tooling.tools.tavily.tavily_storage import TavilyStorage

if t.TYPE_CHECKING:
Expand Down Expand Up @@ -112,11 +112,11 @@ def __init__(
self.embedding_model = embedding_model

def is_predictable(self, market_question: str) -> bool:
(result, _) = is_predictable(question=market_question)
result = is_predictable_binary(question=market_question)
return result

def is_predictable_restricted(self, market_question: str, time_restriction_up_to: datetime) -> bool:
(result, _) = is_predictable(question=market_question)
result = is_predictable_binary(question=market_question)
return result

def research(self, market_question: str) -> str:
Expand Down Expand Up @@ -187,11 +187,11 @@ def __init__(
self.logger = logger

def is_predictable(self, market_question: str) -> bool:
(result, _) = is_predictable(question=market_question)
result = is_predictable_binary(question=market_question)
return result

def is_predictable_restricted(self, market_question: str, time_restriction_up_to: datetime) -> bool:
(result, _) = is_predictable(question=market_question)
result = is_predictable_binary(question=market_question)
return result

def research(self, market_question: str) -> Research:
Expand Down
61 changes: 0 additions & 61 deletions prediction_prophet/functions/evaluate_question.py

This file was deleted.

62 changes: 0 additions & 62 deletions prediction_prophet/functions/is_predictable_and_binary.py

This file was deleted.

Loading