Comments (9)
@glebuk @Zruty0 can you help answer this query.
from machinelearning-samples.
@therollingbird,
The high-level approach to your problem can be solved via clustering as you mentioned. Please take a look at the iris clustering example here.
Basically, you first train a k-means clusterer with k=(number of groups you expect to end up) which is 5 in your example. Then, get the classId for each employee. Once each employee has one or more cluster ids assigned to them, just return them as a list, sorted by cluster.
Now, be aware, that this solution will give you groups of most similar people bucketized together. If you are trying to optimize teams' productivity, you might want to try do the exact opposite to ensure that there is a diversity of skills and proper creative tension.
Regards,
Gleb
from machinelearning-samples.
How would I do diversity with clustering ? That's one of the things I was trying to figure out. Either getting the groups and doing a manual input Oroing an inverse of the cluster algorithm if it's there
from machinelearning-samples.
@glebuk another way I'm thinking is using the knapsack algorithm I'm not sure if ML.net has it, if it does I think that would be the best solution.
If so my next question is does ML have the knapsack algorithm?
from machinelearning-samples.
What are you trying to optimize for each group? If similarity, then clustering is the correct approach.
Knapsack is not really machine learning problem. It is not surprising that ML.NET does not have it. It is an NP-complete optimization problem. There are a few pseudo polynomial approximation implementations using dynamic programming that can be found online.
Now, if you are trying to optimize diversity within each group, then simply do the reverse. Change the k to the size of each group (k=10 in your example) and form groups by taking a single member from each cluster per group.
In real life however, you will have to take into account psychological compatibility between members. How do you plan to compute that?
from machinelearning-samples.
Let me know if there are any further questions. Feel free to close the issue if it was answered.
from machinelearning-samples.
Hi that got me thinking thank you also one more question is there a way to select a number of elements I want in a cluster not just how many clusters I want? So instead of just selecting (k) clusters is there a way to select (n) elements?
from machinelearning-samples.
In general, training done over streaming data. We don't want to scan the entire data to count examples before training. I suggest you implement that logic in your code, by counting the number of training examples and then computing proper K. also note that we do not know apriori how many items will be in each cluster. As a result, that number is not known until training is done.
from machinelearning-samples.
Closing the issue/question as it is stale now.
from machinelearning-samples.
Related Issues (20)
- 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
- outdated .net core 2.0.1 references HOT 1
- Accuracy of bike rental sample
- MachineLearning-samples - PredictionEnginePool
- System.OverflowException: 'Value was either too large or too small for an Int32.' GitHubLabeler
- System.AccessViolationException at TorchSharp.PInvoke.LibTorchSharp.THSGenerator_manual_seed
- How to convert the following Python code into C # code to make it the same code?
- Pre-Process Image (Brightness, Contrast, Greyscale)
- Mark System.Drawing.Common as Required in ObjectDetection Example
- DeepLearning_ImageClassification called an error
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.