Git Product home page Git Product logo

Comments (9)

asthana86 avatar asthana86 commented on September 26, 2024

@glebuk @Zruty0 can you help answer this query.

from machinelearning-samples.

glebuk avatar glebuk commented on September 26, 2024

@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.

therollingbird avatar therollingbird commented on September 26, 2024

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.

therollingbird avatar therollingbird commented on September 26, 2024

@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.

glebuk avatar glebuk commented on September 26, 2024

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.

glebuk avatar glebuk commented on September 26, 2024

Let me know if there are any further questions. Feel free to close the issue if it was answered.

from machinelearning-samples.

therollingbird avatar therollingbird commented on September 26, 2024

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.

glebuk avatar glebuk commented on September 26, 2024

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.

prathyusha12345 avatar prathyusha12345 commented on September 26, 2024

Closing the issue/question as it is stale now.

from machinelearning-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.