Skip to content

Instantly share code, notes, and snippets.

@Hehehe421
Created September 5, 2023 23:41
Show Gist options
  • Save Hehehe421/be8aef7b1c777a596d0f45b4a0e1be7f to your computer and use it in GitHub Desktop.
Save Hehehe421/be8aef7b1c777a596d0f45b4a0e1be7f to your computer and use it in GitHub Desktop.
# Testing
if __name__ == "__main__":
# Create an instance of the RankingModel class
model = RankingModel()
# Define model_input as a dictionary (region is not used in this case)
model_input = {"region": ["Region_3"], 'user_id': [100]}
# Call the predict method of the model
result = model.predict(None, model_input)
# Print the resulting ranked listings
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment