Comments (2)
CollectionDataSource can take in an IEnumerable, here's an example of Collection Data Source in action.
public class ProductEntry
{
[KeyType(Contiguous = true, Count = 262111, Min = 0)]
public uint ProductID { get; set; }
[KeyType(Contiguous = true, Count = 262111, Min = 0)]
public uint ProductID_Copurchased { get; set; }
}
var dataMatrix = new List<OneClassMatrixElementZeroBasedForScore>();
dataMatrix.Add(new OneClassMatrixElementZeroBasedForScore() { ProductID = 0,
ProductID_Copurchased = 1,
Value = 1 });
var testdata = ComponentCreation.CreateDataView(ctx, dataMatrix);
Does this help?
from machinelearning-samples.
Closing the issue as sample code was provided by Ankit. π
from machinelearning-samples.
Related Issues (20)
- Does ML.net support Z Score Normalization?
- BinaryClassification_CLI CLI command is not working for mac terminal
- [DetectSpikeBySsa] System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- Faster processing
- ML.NET Sample similar to Unity's ML Agents? HOT 1
- AutoML - different results for the same input data HOT 2
- AutoML - how to read values of L1Regularization and L2Regularization and selected algorithm name?
- CrossValidate vs Fit method
- AutoML vs Cross validation
- how to inference model onnx with dynamic input sizes in ml.net ?
- Sample AnomalyDetection_PhoneCalls Project does not trigger anomalies with v3.0.1 HOT 1
- Models deployed in Windows 2019 server gets stuck in model.load
- all samples are crashing
- 'MatrixFactorizationTrainer.Options' does not contain a definition for 'K' HOT 1
- Update samples to use Swagger / Swagger UI only in development environment.
- Splitter/consolidator worker encountered exception while consuming source data HOT 1
- How to predict text type based on input text? HOT 1
- Unable to find entry point named "TF_StringEncodedSize" in DLL "tensorFlow" HOT 1
- Auto MultiClassification is not RunοΌHelp me me HOT 1
- Error input & out put onnx model
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 machinelearning-samples.