GMM classifier with Spark Dataframes
up vote
-1
down vote
favorite
I have a Spark DataFrame (sdf)
with 2 columns as [label, features]
. The dataframe looks like this:
+-----+--------------------+
|label| features|
+-----+--------------------+
| 1.0|[-0.0157564170658...|
| 1.0|[-0.0517730601131...|
| 1.0|[-0.1163185834884...|
| 2.0|[-0.0583032481372...|
| 2.0|[-0.0341501310467...|
+-----+--------------------+
I want to train a GMM classifier for each label parallelly. My doubts are as below:
a. How the create new dataframe for each label from the existing dataframes?
b. Can I create an RDD
of dataframes (pandas or spark) and then map
it to a gmm
function?
I am trying to use BayesianGaussianMixture
from sklearn.mixture
for my model training.
apache-spark pyspark apache-spark-sql gmm
add a comment |
up vote
-1
down vote
favorite
I have a Spark DataFrame (sdf)
with 2 columns as [label, features]
. The dataframe looks like this:
+-----+--------------------+
|label| features|
+-----+--------------------+
| 1.0|[-0.0157564170658...|
| 1.0|[-0.0517730601131...|
| 1.0|[-0.1163185834884...|
| 2.0|[-0.0583032481372...|
| 2.0|[-0.0341501310467...|
+-----+--------------------+
I want to train a GMM classifier for each label parallelly. My doubts are as below:
a. How the create new dataframe for each label from the existing dataframes?
b. Can I create an RDD
of dataframes (pandas or spark) and then map
it to a gmm
function?
I am trying to use BayesianGaussianMixture
from sklearn.mixture
for my model training.
apache-spark pyspark apache-spark-sql gmm
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have a Spark DataFrame (sdf)
with 2 columns as [label, features]
. The dataframe looks like this:
+-----+--------------------+
|label| features|
+-----+--------------------+
| 1.0|[-0.0157564170658...|
| 1.0|[-0.0517730601131...|
| 1.0|[-0.1163185834884...|
| 2.0|[-0.0583032481372...|
| 2.0|[-0.0341501310467...|
+-----+--------------------+
I want to train a GMM classifier for each label parallelly. My doubts are as below:
a. How the create new dataframe for each label from the existing dataframes?
b. Can I create an RDD
of dataframes (pandas or spark) and then map
it to a gmm
function?
I am trying to use BayesianGaussianMixture
from sklearn.mixture
for my model training.
apache-spark pyspark apache-spark-sql gmm
I have a Spark DataFrame (sdf)
with 2 columns as [label, features]
. The dataframe looks like this:
+-----+--------------------+
|label| features|
+-----+--------------------+
| 1.0|[-0.0157564170658...|
| 1.0|[-0.0517730601131...|
| 1.0|[-0.1163185834884...|
| 2.0|[-0.0583032481372...|
| 2.0|[-0.0341501310467...|
+-----+--------------------+
I want to train a GMM classifier for each label parallelly. My doubts are as below:
a. How the create new dataframe for each label from the existing dataframes?
b. Can I create an RDD
of dataframes (pandas or spark) and then map
it to a gmm
function?
I am trying to use BayesianGaussianMixture
from sklearn.mixture
for my model training.
apache-spark pyspark apache-spark-sql gmm
apache-spark pyspark apache-spark-sql gmm
edited Nov 14 at 7:43
Ali AzG
587515
587515
asked Nov 14 at 7:32
Pradip Gupta
579
579
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53295105%2fgmm-classifier-with-spark-dataframes%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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