<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_parameter_vector(self, vector, include_frozen=False):
 """ Set the parameter values to the given vector Args: vector (array[vector_size] or array[full_size]):
 The target parameter vector. This must be in the same order as ``parameter_names`` and it should only include frozen parameters if ``include_frozen`` is ``True``. include_frozen (Optional[bool]):
 Should the frozen parameters be included in the returned value? (default: ``False``) """

        v = self.parameter_vector
        if include_frozen:
            v[:] = vector
        else:
            v[self.unfrozen_mask] = vector
        self.parameter_vector = v
        self.dirty = True