
<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
Calculating r2 score of machine learning model

<ASSISTANT_TASK:>
Python Code::
model.score(x_test, y_test)

<END_TASK>
