original_string: public function setInitialTheta(array $theta)
      {
          if (count($theta) != $this->dimensions) {
              throw new \Exception("Number of values in the weights array should be $this->dimensions");
          }
  
          $this->theta = $theta;
  
          return $this;
      }
code: public function setInitialTheta(array $theta)
      {
          if (count($theta) != $this->dimensions) {
              throw new \Exception("Number of values in the weights array should be $this->dimensions");
          }
  
          $this->theta = $theta;
  
          return $this;
      }
code_tokens: public function setInitialTheta ( array $ theta ) { if ( count ( $ theta ) != $ this -> dimensions ) { throw new \ Exception ( "Number of values in the weights array should be $this->dimensions" ) ; } $ this -> theta = $ theta ; return $ this ; }
docstring: Sets the weights manually
  
  @param array $theta
  
  @return $this
  
  @throws \Exception
docstring_tokens: Sets the weights manually