What is the best approach for learning the relationship of two dataframes affecting values of a given list?












0















I have a the following dataset of pandas dataframes:



A:



   col1  col2
0 5 3
1 5 4


B:



   col1  col2
0 6 4
1 2 4


my_list:



[24.5, 65.4]


Assume I have a dataset of thirty A,B,my_list pairs which have different sets of values. Changing a single or multiple values in either or both of the dataframes A and B affect the values in my_list.



Provided that I want to achieve [65.0, 46.21] in my_list, I need to find out what values need to be present in A,B dataframes.



I am looking for suggestions what would be the best solution to this problem? A simple ML algorithm? A deep learning model? If so, which one should I be using?



Please note that my dataset is small as 30 and I am looking to achieve a value as close as possible to the desired my_list value.



Any suggestions will be highly appreciated.










share|improve this question























  • Just missing desired output...

    – U9-Forward
    Nov 23 '18 at 2:07











  • @U9-Forward My desired output is my_list = [65.0, 46.21]

    – sshussain270
    Nov 23 '18 at 2:10











  • One that works?

    – wwii
    Nov 23 '18 at 2:15











  • @wwii what do you mean? I don't follow.

    – sshussain270
    Nov 23 '18 at 2:28
















0















I have a the following dataset of pandas dataframes:



A:



   col1  col2
0 5 3
1 5 4


B:



   col1  col2
0 6 4
1 2 4


my_list:



[24.5, 65.4]


Assume I have a dataset of thirty A,B,my_list pairs which have different sets of values. Changing a single or multiple values in either or both of the dataframes A and B affect the values in my_list.



Provided that I want to achieve [65.0, 46.21] in my_list, I need to find out what values need to be present in A,B dataframes.



I am looking for suggestions what would be the best solution to this problem? A simple ML algorithm? A deep learning model? If so, which one should I be using?



Please note that my dataset is small as 30 and I am looking to achieve a value as close as possible to the desired my_list value.



Any suggestions will be highly appreciated.










share|improve this question























  • Just missing desired output...

    – U9-Forward
    Nov 23 '18 at 2:07











  • @U9-Forward My desired output is my_list = [65.0, 46.21]

    – sshussain270
    Nov 23 '18 at 2:10











  • One that works?

    – wwii
    Nov 23 '18 at 2:15











  • @wwii what do you mean? I don't follow.

    – sshussain270
    Nov 23 '18 at 2:28














0












0








0








I have a the following dataset of pandas dataframes:



A:



   col1  col2
0 5 3
1 5 4


B:



   col1  col2
0 6 4
1 2 4


my_list:



[24.5, 65.4]


Assume I have a dataset of thirty A,B,my_list pairs which have different sets of values. Changing a single or multiple values in either or both of the dataframes A and B affect the values in my_list.



Provided that I want to achieve [65.0, 46.21] in my_list, I need to find out what values need to be present in A,B dataframes.



I am looking for suggestions what would be the best solution to this problem? A simple ML algorithm? A deep learning model? If so, which one should I be using?



Please note that my dataset is small as 30 and I am looking to achieve a value as close as possible to the desired my_list value.



Any suggestions will be highly appreciated.










share|improve this question














I have a the following dataset of pandas dataframes:



A:



   col1  col2
0 5 3
1 5 4


B:



   col1  col2
0 6 4
1 2 4


my_list:



[24.5, 65.4]


Assume I have a dataset of thirty A,B,my_list pairs which have different sets of values. Changing a single or multiple values in either or both of the dataframes A and B affect the values in my_list.



Provided that I want to achieve [65.0, 46.21] in my_list, I need to find out what values need to be present in A,B dataframes.



I am looking for suggestions what would be the best solution to this problem? A simple ML algorithm? A deep learning model? If so, which one should I be using?



Please note that my dataset is small as 30 and I am looking to achieve a value as close as possible to the desired my_list value.



Any suggestions will be highly appreciated.







python algorithm pandas dataframe deep-learning






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 23 '18 at 1:58









sshussain270sshussain270

475418




475418













  • Just missing desired output...

    – U9-Forward
    Nov 23 '18 at 2:07











  • @U9-Forward My desired output is my_list = [65.0, 46.21]

    – sshussain270
    Nov 23 '18 at 2:10











  • One that works?

    – wwii
    Nov 23 '18 at 2:15











  • @wwii what do you mean? I don't follow.

    – sshussain270
    Nov 23 '18 at 2:28



















  • Just missing desired output...

    – U9-Forward
    Nov 23 '18 at 2:07











  • @U9-Forward My desired output is my_list = [65.0, 46.21]

    – sshussain270
    Nov 23 '18 at 2:10











  • One that works?

    – wwii
    Nov 23 '18 at 2:15











  • @wwii what do you mean? I don't follow.

    – sshussain270
    Nov 23 '18 at 2:28

















Just missing desired output...

– U9-Forward
Nov 23 '18 at 2:07





Just missing desired output...

– U9-Forward
Nov 23 '18 at 2:07













@U9-Forward My desired output is my_list = [65.0, 46.21]

– sshussain270
Nov 23 '18 at 2:10





@U9-Forward My desired output is my_list = [65.0, 46.21]

– sshussain270
Nov 23 '18 at 2:10













One that works?

– wwii
Nov 23 '18 at 2:15





One that works?

– wwii
Nov 23 '18 at 2:15













@wwii what do you mean? I don't follow.

– sshussain270
Nov 23 '18 at 2:28





@wwii what do you mean? I don't follow.

– sshussain270
Nov 23 '18 at 2:28












1 Answer
1






active

oldest

votes


















1














Sounds like you need a regression algorithm.



May I translate your task to: given 8 positional inputs, find a general formula, that produces the output closest to the desired output. This is a typical regression problem and you have many powerful tools you can use.



Given that your dataset is small, you'd better start with simple algorithms such as linear regression, then move to more complicated ones such as support vector machines if necessary.






share|improve this answer
























  • they are not positional inputs, simple integers.

    – sshussain270
    Nov 24 '18 at 20:09













  • @sshussain270 but they are at specific positions right

    – Kevin Fang
    Nov 25 '18 at 22:33











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439823%2fwhat-is-the-best-approach-for-learning-the-relationship-of-two-dataframes-affect%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Sounds like you need a regression algorithm.



May I translate your task to: given 8 positional inputs, find a general formula, that produces the output closest to the desired output. This is a typical regression problem and you have many powerful tools you can use.



Given that your dataset is small, you'd better start with simple algorithms such as linear regression, then move to more complicated ones such as support vector machines if necessary.






share|improve this answer
























  • they are not positional inputs, simple integers.

    – sshussain270
    Nov 24 '18 at 20:09













  • @sshussain270 but they are at specific positions right

    – Kevin Fang
    Nov 25 '18 at 22:33
















1














Sounds like you need a regression algorithm.



May I translate your task to: given 8 positional inputs, find a general formula, that produces the output closest to the desired output. This is a typical regression problem and you have many powerful tools you can use.



Given that your dataset is small, you'd better start with simple algorithms such as linear regression, then move to more complicated ones such as support vector machines if necessary.






share|improve this answer
























  • they are not positional inputs, simple integers.

    – sshussain270
    Nov 24 '18 at 20:09













  • @sshussain270 but they are at specific positions right

    – Kevin Fang
    Nov 25 '18 at 22:33














1












1








1







Sounds like you need a regression algorithm.



May I translate your task to: given 8 positional inputs, find a general formula, that produces the output closest to the desired output. This is a typical regression problem and you have many powerful tools you can use.



Given that your dataset is small, you'd better start with simple algorithms such as linear regression, then move to more complicated ones such as support vector machines if necessary.






share|improve this answer













Sounds like you need a regression algorithm.



May I translate your task to: given 8 positional inputs, find a general formula, that produces the output closest to the desired output. This is a typical regression problem and you have many powerful tools you can use.



Given that your dataset is small, you'd better start with simple algorithms such as linear regression, then move to more complicated ones such as support vector machines if necessary.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 23 '18 at 2:46









Kevin FangKevin Fang

1,296317




1,296317













  • they are not positional inputs, simple integers.

    – sshussain270
    Nov 24 '18 at 20:09













  • @sshussain270 but they are at specific positions right

    – Kevin Fang
    Nov 25 '18 at 22:33



















  • they are not positional inputs, simple integers.

    – sshussain270
    Nov 24 '18 at 20:09













  • @sshussain270 but they are at specific positions right

    – Kevin Fang
    Nov 25 '18 at 22:33

















they are not positional inputs, simple integers.

– sshussain270
Nov 24 '18 at 20:09







they are not positional inputs, simple integers.

– sshussain270
Nov 24 '18 at 20:09















@sshussain270 but they are at specific positions right

– Kevin Fang
Nov 25 '18 at 22:33





@sshussain270 but they are at specific positions right

– Kevin Fang
Nov 25 '18 at 22:33




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439823%2fwhat-is-the-best-approach-for-learning-the-relationship-of-two-dataframes-affect%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

RAC Tourist Trophy