Comments (6)
The issue is that you are using Variable.IsBetween on data where the output is sometimes false. This leads to a weird constraint that requires vYY to not be between two bounds. Do you actually need this for ordinal regression? I would think that each observation in ordinal regression asserts that vYY is between two bounds.
from infer.
By the way, the matchbox recommendation model is similar to ordinal factor analysis.
from infer.
Ah, of course, that makes perfect sense. That was a simple enough fix. I'd like to constrain the weights vectors to be unit length, but it seems that the two more obvious methods for doing so (specifically, taking the inner product with itself or sum of squares and constraining it to be unit 1) don't work. Is this possible under VMP or EP?
from infer.
Thanks much for the prompt reply, by the way. I'll take a look at the matchbox recommendation model.
from infer.
P.S. One more question - is there a straightforward way to constrain an array to be ordered (i.e. for learning the thresholds)? It seems like there should be a way to string together Variable.ConstrainPositive
calls to do so but I haven't quite grasped the range syntax well enough yet.
from infer.
It is theoretically possible to have a unit length constraint in VMP or EP. A vector of unit length is equivalent to a point on a hyper-sphere, so the posterior would be a distribution over the hyper-sphere, and various approximate distributions could be used. However, they are not yet implemented in Infer.NET.
You can indeed string together ConstrainPositive calls to constrain an array to be ordered, but you don't need to do this for ordinal regression, since the IsBetween constraints already do it. See the matchbox model.
Since your original question was answered, I'm closing this issue.
from infer.
Related Issues (20)
- Minor question: where are the formulas related to additive corrections for TruncatedGaussian? HOT 4
- How to define the means, precision, scale and shape in the MixtureOfGaussians, so that they can be used in the precompiled model? HOT 2
- Update a model in Infer with a new observation HOT 1
- `A is not a point mass` HOT 1
- Bayesian Neural Network HOT 1
- .NET 5.0 has reached end of life HOT 1
- Doc comparison to Stan. Update that Stan is turing complete HOT 2
- NuGet package broken in Unity 2021.3.6f1 HOT 1
- NullReferenceException when using Power operator HOT 5
- Matchbox recommender message 7 HOT 12
- SchedulingTransform Error when inferring Gamma.Uniform as Point Estimate HOT 2
- Multivariate hidden markov model questions HOT 1
- Consider open Github discussion HOT 1
- Recommender system tutorial evidence HOT 7
- Streaming data from disk HOT 1
- MotifFinder example is broken
- Infer .NET does not appear to work on .NET 8.0 HOT 2
- Type passed in must be derived from System.Attribute or System.Attribute
- Model compilation issue in Blazor WASM HOT 2
- Inferred values are way off HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infer.