We changed our privacy policy. Read more.

Questions tagged [binary]

The tag has no usage guidance.

33 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
76 views

Reduce multiclass classification targets to binary classification targets in scikit-learn

I would like to reduce multiclass classification targets to binary classification targets. Ideally, this mapping would happen within scikit-learn so the same transformation applies during both ...
4
votes
2answers
139 views

If in t-SNE digaram of binary classification both classes follow the similar curve what does t-SNE diagram show?

If in t-SNE digaram of binary classification both classes follow the similar curve what does t-SNE diagram show for instance: Figure1 or Figure2
2
votes
0answers
13 views

Best Approach and Classifier for Binary Classification Problem

I am trying to build a binary classifier, and I am wondering what is the best approach for data segmentation, training/testing, performance evaluation, selecting classifier type, and overall approach ...
2
votes
0answers
198 views

Keras model with LSTM quantization aware training

I would like to run quantization aware training with a keras model which has an LSTM layer. However, just the LSTM layer seems to not be supported. Alan Chiao seems to suggest here that it is possible ...
2
votes
1answer
112 views

Impose similar metric on segments to model

I am training a binary classifier in a dataset using AUC as a score. The dataset has two main groups (we will refer to them as good and bad population). A property that this dataset has is having a ...
2
votes
0answers
30 views

Correct approach to usage of class labels in cell imaging data

As part of a group project at university, we are given a series of videos of cell cultures over a 24 hour period. A number of these cells (the "knockout" cells) have had a particular gene removed, ...
2
votes
1answer
1k views

Backpropagation with step or threshold activation function

I understand that gradient descent is local and it deals only with the inputs to the neuron, what it outputs and what it should output. In all I've seen, gradient descent needs the activation function ...
1
vote
0answers
7 views

R Phi Coefficient Calculation

I have a dataframe in R and am trying to determine the Phi correlation coefficient between 2 binary (aka dichotomous: 0 or 1) variables, each one in a column (column1 and column2). I have installed ...
1
vote
1answer
28 views

Making an ensemble model for high F1 score

I presently have 2 algorithms that have a numerical output. Using a threshold of 0.9, I get the classification output. Let's say they are: P (high precision, low recall) R (high recall, low precision)...
1
vote
0answers
102 views

Pearson correlation on two categorical variables

I am using the fourth-corner method in one of my papers (for those who need the name). The method was developed to test associations between variables in two datasets. In my case, the datasets ...
1
vote
0answers
10 views

What is the generalization of binary/boolean matrix factorization to fuzzy logics called?

Given a matrix of boolean values $\mathbf{X} \in \mathbb{B}^{M \times N} = \{\top, \bot\}^{M \times N}$, the binary/boolean matrix factorization (BMF) problem is to find $\mathbf{U} \in \mathbb{B}^{M \...
1
vote
0answers
97 views

Forecasting binary time series

I am working on the next event occurrence prediction task and the data is binary time series with 1 if the event occured and 0 if not. I want to predict whether the event will occur or not on the day ...
1
vote
1answer
37 views

Predicting the next occurrence based on binary

I have no experience in statistics or machine learning. I have a True/False binary array describing occupation of open public spaces ...
1
vote
2answers
45 views

Does it make sense to train multiple classifiers for multiple partitions of data?

Let's say I have a dataset consisting of 100 features and a binary target variable. On exploring the data, I see that Feature 10 which is binary, seems to split the data in an 80:20 ratio with respect ...
1
vote
0answers
36 views

How to use "related" and "unrelated" as classes rather than multiple classes?

I have a dataset with about 15 feature columns and about 1000 rows that I'd like to use for supervised training. Every row can be classified as "related" or "unrelated" to another row. About fifteen ...
1
vote
0answers
17 views

Perpendicularity between random variables?

I am reading Bechavod et al. (2017) [1], and at page 3 there is written: In the example, each data point lies in $X = (X_1,X_2) = \{0, 1\}^2$ and has two features—$X_1 = A$ is the protected ...
1
vote
0answers
3k views

Binary Classification of Numeric Sequences with Keras and LSTMs

I'm attempting to use a sequence of numbers (of fixed length) in order to predict a binary output (either 1 or 0) using Keras and a recurrent neural network. Each training example/sequence has 10 ...
1
vote
0answers
94 views

Transforming multiclass problem into binary problem to improve accuracy

I found a code for a classifier for a 6 class problem where the classes are integers from 0 to 5. I found this code that I tested and it improved my accuracy highly. Can anyone explain the spirit ...
1
vote
0answers
64 views

Why is my predicted vs observed plot worse for training than validation. Running an overfitted GBM on a binomial outcome

I have a binomial outcome that I am trying to predict using a gbm in h2o. I have set quite a low min_rows value for each node and it appears to be overfitting. See plots below. When I group the ...
1
vote
1answer
1k views

How to quantize weights in forward pass during training in Keras?

In Keras, I would like to train a network with binary weights in the manner of Coubariaux, et al., but I cannot figure out where the quantization (binarization) should occur within the code. A core ...
0
votes
0answers
13 views

Multiple Input (Binary) and Single Ouput: How to calculate correlations?

I have a dataset with multiple criteria which are either "passed" (green) or "not passed" (red) and an output (passed or not passed) -> see table. Also the criteria have a ...
0
votes
0answers
22 views

CNN seems doing good during training and validation but not really

I'm doing a simple binary classification using this dataset ...
0
votes
0answers
19 views

Handle unbalanced data by implementing Edited nearest neighbors, smote and Tomek links in r?

Imbalanced data is a big problem in classification problems. I have a binary classification problem with imbalanced data. I have researched and found that a possible method of dealing with this is ...
0
votes
0answers
46 views

LightGBM get model decision(rules)

I need to interpret the model decision for binary classification. Here is my model: ...
0
votes
0answers
23 views

Classifier Performance - Binomial proportion confidence interval

I am solving a binary classification task. As an output of Random Forest classifier, I get a probability of how sure RF is that class is 0 or a 1. How can I calculate the needed threshold, to be 95% ...
0
votes
0answers
59 views

questions about logistic regression

In the following Linear Regression discussion I didn't understand a few things: So my questions are: In the third slide: What does this probability means $P\left(y_i|x_i\right)$ and accordingly what ...
0
votes
0answers
247 views

Cluster method with binary variable

I need to do a cluster analysis for the following variables: ...
0
votes
1answer
123 views

Binary classificaiton for weather data if its class 1 or class 0 alert

I am working on weather data and it has few features that are independent variables such as severity, severity_id, ...
0
votes
0answers
84 views

binary longitudinal time series

What kind of feature engineering techniques should one apply for longitudinal data comprising of individual binary time interval data about when an activity was done during the day(we have this data ...
0
votes
2answers
13k views

How do I read a dat file, for which I don't know its structure?

Is there any way to atleast read the text from the dat file. I have its corresponding mdf file hence I know what all data and columns are there in it. How do I figure out the contents in my dat file. ...
-1
votes
1answer
24 views

Increase accuracy in binary classification with ambiguous data

I am fairly new to Datascience and currently working on an assignment that requires me to do a binary classification on a set with about 9 parameters for X. I tried working on it using different ...
-1
votes
1answer
38 views

What is the best way to select unimportant columns for binary classification?

There is a dataset with one binary attribute (dependent variable) 0 or 1. Distribution 57/43 My task is to find such combinations of signs in which the accuracy of predictions 0/1 will increase to 70% ...
-1
votes
1answer
42 views

Unintuitive results when Expanding Binary Classification to Multiclass

I have aproblem where I need to predict when a Truck arrives to pickup something. Say we have formulated that a binary classification model, where 0: The truck coming for pickup today 1:The ...