Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8852221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:20:42+00:00 2026-06-14T13:20:42+00:00

I have a numeric dataset (as a database table) with a n to m

  • 0

I have a numeric dataset (as a database table) with a “n to m” relation. For example:

A | B
-----
1 | 1
1 | 2
1 | 9
4 | 2
7 | 8
7 | 11

And I would like to “train” a classifier (using weka?) to tell me which A is the most likely for a set of B’s. As an example: [1,2,8] should tell me something along the lines of {1:2, 4:1, 7:1}, that is: “The set was found in A N times”

I can of course implement this in sql and my favourite scripting language. However, I wanted to know if there is a more – I guess “formal” – way to do it. I have weka running, and I have my db connected, however I am lost which classifier to take (many refuse service) and I would also greatly appreciate some links for a theoretical background (for instance what is it called what I like to do and what improvements exists).

I would also appreciate the “R” way if you are more versatile in R. (However, I am interested not only in solving my problem but understanding what kind of problem this is – which I would via a weka solution.) I am sorry if this is in any way a duplicate question, but sadly I lack the information to specify what I am looking for here. Visualization and other output to learn and study would be great, thou.

I thank you kindly in advance, just for reading and hope you can help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T13:20:44+00:00Added an answer on June 14, 2026 at 1:20 pm

    In R you can do as follows:

    foo = data.frame(A=c(1,1,1,4,7,7),B=c(1,2,9,2,8,11))
    foo
    #   A  B
    # 1 1  1
    # 2 1  2
    # 3 1  9
    # 4 4  2
    # 5 7  8
    # 6 7 11
    
    table(foo[foo$B %in% c(1,2,8),]$A)
    
    # 1 4 7 
    # 2 1 1 
    

    Do you need something more?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Situation: In my database I have a table in which records may reference other
I have a unique dataset, a portion of which can be reproduced using: data
I have a table which is full of arbitrarily formatted phone numbers, like this
I have a numeric vector in R, which consists of both negative and positive
I have a dataframe with numeric entries like this one test <- data.frame(x =
I have a, say, daily income data set of numeric Temporal Properties , like:
I have a dataset, the first column of which is the date in the
I have numeric data that I am getting from a database. They are all
I would like to have a small function displaying basic data statistics for eachnumeric
I would like to flatten a collection of DTO's into a single DO using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.