Comments (3)
This is the code :
//! one dimensional linear regression
public LinearRegression(List<double> x, List<double> y) {
reg_ = new LinearLeastSquaresRegression<List<double>>(argumentWrapper(x), y, linearFcts(1));
}
//! multi dimensional linear regression
public LinearRegression(List<List<double>> x, List<double> y) {
reg_ = new LinearLeastSquaresRegression<List<double>>(x, y, linearFcts(x.Count));
}
if x is List<double> x
it use linearFcts(1)
if x is List<List<double>> x
it use linearFcts(x.Count)
is that wrong ? Can you explain more ?
from qlnet.
linearFcts determines the number of regression factors. The size of x is the size of the sample data. It is required for x.count ==y.count. The size of x[0] is the number of regression factors.
from qlnet.
Fixed 6777be5
from qlnet.
Related Issues (20)
- [REFACTO] Generalized Leg
- [BUG] GetHashCode of Date class - absent implementation HOT 1
- [BUG] Optimization method based on line search may return function value that does not correspond to current value HOT 2
- [FEATURE] Cleanup Project solution HOT 5
- [BUG] Missing bank holidays in calendar for Denmark
- Question: is it possible to use QLNet for generic MC pricing? HOT 2
- Thread aware calculation of LazyObject HOT 5
- [BUG] False exception cause bootstrap failed because ts_.instruments_.Sort() does not work in Class:Iterativebootstrap, Method:initialize() HOT 1
- Use dotnet format instead of astyle HOT 1
- [BUG] Error in ActualActualISMA daycounter for long/short final periods HOT 5
- Question: Discrepancy between holidays in QLNet and QuantLib 1.21
- Net standard over net 6.0 HOT 10
- Fix .NET 7 compilation warnings
- [BUG] HOT 2
- Update Callable bonds with tests
- Add Bond Equivalent Yield calculation
- Add Compounded Then Simple calculation
- Determine early close date for US bond market calendar
- Update to .NET 8 HOT 3
- Update and refactor Asian engines
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 qlnet.