I made it static with prototype:

```cpp
cv::Mat get_learnt_thetas() const;
```

and defenition:

```cpp
cv::Mat LogisticRegression::get_learnt_thetas() const
{
    return this->learnt_thetas;
}
```