algorithm that assign object to cluster based on questions [closed] - machine-learning

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I need algorithm that assign object to cluster already created.
In my case objects are Patients or sick person and clusters are diseases, and based on multiple questions patient should be assigned to cluster; of course the questions and responses (yes or no) will be already prepared for every disease.
For example : you are coughing ? if yes => do you have a fever? if Yes then maybe => corona disease.
and so on.
edit : decision tree algorithm

Have a look at ID-3; this allows you to build a decision tree based on pre-classified data, and any new patient can be classified according to their responses.

Related

Best way to create a FAQ section in Rails [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
I have 300 questions and answers and each of the questions fall in one of four categories. My question is what would be the best way to create web searchable pages for each 300 Q&A.
My first thought is to just do it simple and create one model. The one model will have question:string answer:text category:string and then input all the questions and answers in the database.
My second choice would be to create a category model and then a model for questions and answers.
My third choice is to create a JSON file with the questions and answers formatted then call on it through Javascript.
What would be the best way to achieve this while allowing search engines to rank each question?
I would say, go with single model Faq which contains all the required info i.e. question, answer, and category.
You don't need a separate model for categories if:
The categories list is predefined (in which case you can use enum type field), AND
Each category has only a name and no other attributes.
About JSON file, it will be difficult to add/remove FAQs in that. You will probably need to push your code after every change. With a model Faq in application, you can always do CRUD on FAQs easily.
So, the final structure should be like this:
class Faq
# field :question
# field :answer
# field :category, type: :enum, values: %w[<category-names>]
end
And for rendering FAQs category-wise, you can always group on category.

How to delete relationship between 2 nodes on Neo4j? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am using Neo4j graph database.
I want to disconnect 2 nodes if they are connected by any relationship.
How to do that ?
Get your nodes somehow. This example assumes you have an Id parameter on the nodes. (but you can use any parameter to get a match)
match (n:SomeLabel)-[r]-(m:AnotherLabel) where m.Id =1, n.Id =2 delete r

Crime Data Warehouse [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I am a IT student and now facing problem in understanding data warehousing. I need to implement a data warehouse that will be used in State police department for crime analysis. But I am not sure how to do with measure. I will use star schema. I want to set the business question from the view of Chief office , so I guess the measures should be No of crimes, No of offender and No of victims, and I am not sure.. May I know the fact table (measures).
I would start by writing down everything you know about crime. For example:Police, Detectives, Locations, CrimeType, Crime Instance etc.
Theses could be your tables.
Link the data in the tables to make it into a database. The data in the tables may be something like:
Location: Name, Address, Type, creationDate, user
Crime: Name, Severity, Punishment, creationDate, user
CrimeIntance: Crime, Location, Date, Detective, creationDate, user
etc, etc - use your imagination

Access all submodels from a ActiveRecord relation [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to write something like this
User.groups.members.addresses
What I need is an array of all addresses which User has access to. If User is in two groups, each group has 2 unique members with unique addresses I want an array of 4 addresses
Using Ruby on rails 4
You should be able to add a scope to your address model, you just need to add some joins in there. Haven't tested this but it should be on the right track.
class Address
scope :by_user, -> user { joins(:member).joins(:group).where(user: {id: user.id})}}
end
usage:
Address.by_user(#user)

Should I split this model and table? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I would like to create simple ResumeBank app.
Issue:
As user I would like to add only two Resumes.
Forms for this both Resumes are different with only two fields.
Resumes have 12 the same attributes but 2 are diferent.
Question:
Should I split that Resume model and tables to ex: PolishResume and EnglishResume, polish_remsumes and english_remsumes?
Or maybe should I use STI and create PolishResume < Resume and use one table.
What are disadvantages of splitting option?
Seems like classic inheritance should solve it
class ResumeBase{...}
class ResumeWith12Forms: public: ResumeBase{
//use options to determine which unique 2 forms to show
//options could be an enum or even boolean
ResumeWith12Forms(options){ };
}
class User{ std::vector< std::shared_ptr<ResumeBase> userResume; }

Resources