Oleksandr Zaitsev
Oleksandr Zaitsev
If this language model is trained on one corpus (e.g. gutenberg) and applied to another (e.g. brown), it is very likely to encounter out of vocabulary words or unseen ngrams....
Links to books, booklets, MOOC, blogs, websites, etc.
This is probably because they don't set the random state. For example: - PMQRTest >> testMPInverse
This would remove the coupling between Collections and Complex numbers (which live in a separate package). Some (perhaps not all) examples include: - PMVector >> isReal - PMMatrix >> isReal...
https://en.wikipedia.org/wiki/Moore%E2%80%93Penrose_inverse A simple (but slightly time-consuming) implementation can be based on SVD: ```st PMMatrix >> pseudoinverse | svd u s v sPseudoinverse | svd := PMSingularValueDecomposition decompose: matrix. u :=...
For now, only the small square matrix is used for testing. Other three matrices are commented out. If you uncomment example3 and example4, they fail ```st PMSingularValueDecompositionTest >> setUp super...
The implementation of `PMComplex >> sqrt` was improved in PR #221. However, this implementation still suffers from potential floating point overflow/underflow. This is why I suggest something even more robust...
I don't know if this is easy to do in practice, but this makes a lot of sense to me: A ComplexNumber is a kind of Number
Because numbers can also be conjugate in a different sense: `5 + 5 sqrt` is conjugate to `5 - 5 sqrt`. https://math.stackexchange.com/questions/3397053/whats-the-correct-definition-of-conjugate-and-do-we-identify-them Also, this message should be implemented by `Number`...