text
stringlengths
83
79.5k
H: NameError 'np' is not defined after importing np_utils I am running a MNIST example in a Jupyter notebook running in an Anaconda virtual environment. I have tried to run the code below (not yet finished, I was testing it) when it comes up with an error (can be seen below the code). (X_train, y_train), (X_test, y_te...
H: Why does an imbalanced data set badly effect distance measures like Mahalanobis? I'm relatively new to data science and I am struggling to understand why the Mahalanobis distance (or any other distance measure) applied to an imbalanced data-set becomes inaccurate. I have a data set that consists of three classes A,...
H: There could be a problem with the linear layer after the attention inside a transformer? My question regards this image: It seems that after the multi head attention there is a linear layer as they mention also from here: the linearity is given by the weights W^{o}. my quesion is: for the decoder, doesn't this li...
H: unable to predict by LinearRegression Should I add csv as text in SO question? There's lot more data. %matplotlib inline plt.xlabel('Year') plt.ylabel('Income($US)') plt.scatter(df.year,df.income,color='red',marker='+') reg = linear_model.LinearRegression() reg.fit(df[['year']],df.income) Output : LinearRegres...
H: Is CRF suitable for multi-words Named Entity Recognition? I've a problem where I should create a custom NER by using sklearn CRF. In the official tutorial, they are using CoNLL2002 corpus is available in NLTK where the entities are represented with a single word but in my problem, an entity can be formed with multi...
H: find value which occurred more times in a group from data frame column R I have a data frame with latitude and longitude of a particular place. one place can have multiple lat, longs and those lat, long values can be same or different. I need to find the correct lat, long based on no.of occurances of lat, long for ...
H: Overall AUC higher than all "stratified" AUCs For one of my binary classification models, I have observed this (Simpson's Rule-esque) paradox. The AUC on the test set as a whole is 0.8. Gender is one of the model's features. So I decided to produce a "bias" report, for which I calculated AUCs for each of the Male...
H: Plot overlapping time series I'm trying to plot my test set and test set predictions to check the differences and see how my autoencoder reconstructed the data, but since I have a test set 30x10 I have a huge visualization problem: How can I solve it? This is the code, I'm just showing the first row (X-test[0]), b...
H: Finding an appropriate binary classification algorithm for time series data intervals Maybe someone here has experience in this matter and can point me in the right direction. I want to classify parts of an interval of numerical movement data as either resting or not resting. I have training data of what resting in...
H: What is the upscaling factor in super resolution with deep learning? I have been reading papers on single image super resolution (SISR) and I frequently encounter X3 upscaling factor, X4 upscaling factors. Example: SRGAN mentioning x4 upscaling factor It would be wonderful if anyone could explain it in simpler word...
H: What will be the input_shape of tf.keras.layers.Conv3D be for these inputs I have many videos, and each video is made up of 37 images (there are 37 frames in the whole video). And the dimension of each image is (100, 100, 3).... So the shape of my dataset is [num_of_videos, 37, 100, 100, 3] If I want to pass these ...
H: How does class_weight work in Decision Tree? I am interested in Cost-Sensitive learning. And I am trying to understand how class_weight in DecisionTree works in terms of math. I read a lot of articles that there are a lot of algorithms Cost Sensitive Decision Tree. So what exactly does class_weight do in Decision T...
H: Is there an appropriate use of adjusting class weights for a balanced dataset? I ask this because I am currently working with a CNN model built for diagnosis of pneumonia. Originally, I followed a notebook on kaggle to build the model and thereby learn what each bit of code is for, etc. The dataset used was rather ...
H: Visualizing a Perceptron I wanted to visualize how a perceptron learns, so I made a class that performs gradient descent. To show the decision, I plot a plane showing where positive examples and negative examples are, according to the perception. I also plot the decision line. Right now, this is the output: As you...
H: keras mnist dataset I am learning Neural Network. I was running following source code import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt %matplotlib inline import numpy as np (X_train , y_train) , (X_test , y_test) = keras.datasets.mnist.load_data() I was searching about keras mni...
H: What is feature channels mentioned in U-Net? I was reading the U-Net paper for medical image segmentation. I had a doubt in the architecture. The authors mention that the max pooling layers in contraction path double the number feature channels while Downsampling. Can anyone explain what are feature channels and ho...
H: Understanding time series anomaly detection using Autoencoder I'm studying how to detect anomalies in the time series using an Autoeconder. In particular, I'm following the guide posted in the Keras website, but I don't understand why they are creating and how can I adapt it to my dataset. In their guide they load ...
H: Mathematical bias and weight vs machine learning bias and weight I am a little confused about the term Bias and Weight with respect to machine learning. Say we want to predict the heights of people whose weights are given. So plot weights to x-axis and height to yaxis. To find out the linear relationship between he...
H: How to professionally spell library names such as "scikit learn"? For example for inclusion in a CV. This is mostly a question of whether one should use capital letters or not. Usually I search the library to find how the library name is spelled on the official page. For scikit-learn it is spelled without capital l...
H: Does REPEATED K-fold cross validation make sense with Random Forest? When using random forest, would using normal cross-validation and just taking the average results from multiple models with different random states give me the same results as using Repeated K-fold cross validation? Repeated K-fold cross-validatio...
H: What is the intuition of using clustering for performing feature engineering in machine learning tasks? I am trying to implement the research paper Combining Boosted Trees with Metafeature Engineering for Predictive Maintenance. The paper has a section called meta feature engineering where they have used hierarchic...
H: The sum of multi-class prediction is not 1 using tensorflow and keras? I am studying how to do text classification with multiple labels using tensorflow. Let's say my model is like: model = tf.keras.Sequential([ tf.keras.layers.Embedding(vocab_size, 50, weights=[embedding_matrix], trainable=False), tf.keras...
H: Set seed for a Class that calls Keras Models I have class that I use to optimize parameters of a Keras LSTM model. It is known that to set seed for keras, one must input the follow on its code. But what I'm not understanding is where to put it in the case of a class that will build and modify the models. from numpy...
H: Is a multi-layer perceptron exactly the same as a simple fully connected neural network? I've been learning a little about StyleGans lately and somebody told me that a Multi-Layer Perceptron, MLP, is used in parts of the architecture for transforming noise. When I saw this person's code, it just looked like a norma...
H: with ML/DL model Is possible predict numbers of items required? I have a dataset is regarding ambulance call data. Data sample: v_type district gender complaint age Month 0 Advanced District 1 Male Chest Pain 28 jan 1 Advanced District 2 Male Heart Problem 50 dec 2 Ge...
H: How to determine the inputshape of a ANN in Keras I started to use Keras for ANN and something that I do not really understand is which values to choose for the input_shape parameter of the first layer in an ANN? I know that the number should be equal to the inputs but how can I determine the order and the other va...
H: Is it good practice to use SMOTE when you have a data set that has imbalanced classes when using BERT model for text classification? I had a question related to SMOTE. If you have a data set that is imbalanced, is it correct to use SMOTE when you are using BERT? I believe I read somewhere that you do not need to do...
H: In Neural network, if one node is deleted, where should other nodes be connected? If it's a fully connected neural network, should we just remove those lines that were originally connected to the deleted node, and hence no actual changes on the remaining nodes? Except there weights and bias will be updated? AI: Whe...
H: When does it make sense to add numbers with different units? Given two vectors containing numbers that have different natures / units, (example length in Meters and weight in Kilograms), does it make sense to calculate euclidean distance between these two vectors or cosine similarity? The equations imply that you h...
H: Do I load all files at once or one at a time? I currently have $1700+$ CSV files. Each of them is in the same format and structure, give or take a row or possibly a column at the end. Each CSV is $\approx 3.8$ MB. I need to perform a transformation on each file Extract one data set, perform a summation and column ...
H: Prevent model from over-focusing on strong features I have a classification model (DNN/Linear layers with some transformers and other things later). The input to the model are several different modalities of different lengths and different amounts of information. I am trying to mitigate the dimensionality differenc...
H: How to best visualize or capture time interval between lab measurements? I have a table like as shown below subject_id lab_test_id lab_test_date value difference "10005606" "20364112" "2143-12-06 02:32:00" "1.3" "13:10:00" "10005606" "20364112" "2143-12-06 15:42:00" "1.3" "02:02:00" "1000...
H: Efficient way to create matrix that shows if data exits per day So I have a dataset containing different ID's and the time the data was created. ID Date 0 123123 2021-03-24 12:43:13.494000+00:00 1 123412 2021-03-24 12:43:13.494000+00:00 2 123123 2021-03-24 12:43:15....
H: reliability of human-level evaluation of the interpretability quality of a model Christoph Molnar, in his book Interpretable Machine Learning, writes that Human level evaluation (simple task) is a simplified application level evaluation. The difference is that these experiments are not carried out with the domain ...
H: How to deal with class imbalance problem in natural language processing? I am doing a NLP binary classification task, using Bert + softmax layer on top of it. The network uses cross-entropy loss. When the ratio of positive class to negative class is 1:1 or 1:2, the model performs well on correctly classifying both ...
H: Drug Making Using Genetic Algorithms I want to create a drug using N different chemicals for fighting a bacterial infection those N chemicals are contained inside the drug in different quantities my work environment is a simulated one and I want to create the drug using genetic algorithms. How can I use genetic alg...
H: Why is the optimal C chosen by GridSearchCV so small? I'm trying to use GridSearchCV to select the optimal C value in this simple SVM problem with non-separable samples. The issue I'm having is that when I run the code the optimal C is chosen to be ridiculously small (~e-18) so that the margin is expanded to contai...
H: Input layer is incompatible even when dimensions (apparently) match I am making a sequential neural network for classification, with 3 dense layers, which will be trained on a simple synthetic dataset. The description of dataset is as follows: Data and class labels are integers. They are 2000 each. There is only a...
H: How can precision be less than one in Leave-One-Subject-Out binary classification if each subject contains only one class Say I'm trying to classify a medical condition. Theres only two classes: Sick and Healthy. I build a model and I can't split the data because I don't want data from the same patient being in tra...
H: How do I calculate the accuracy for graph mining in terms of (top 1%)? I have 3600 samples in my dataset. I split the dataset into the train (2700) and test (900). My problem is related to new link prediction. I am using the Common Neighbor (CN) method. Using CN, we can predict new links based on the score. The sco...
H: On what principle did Google's DeepMind learn to walk? I just saw this video on Youtube. On what principle did Google's DeepMind learn to walk? Was it Q-Learning or a Genetic Algorithm or Policy Gradient? AI: The full method is explained in the paper Emergence of Locomotion Behaviours in Rich Environments by the De...
H: How to interpret fast-rcnn metrics? I'm following this tutorial to fine tune Faster RCNN model, during training process a lot of statistics are produced however I don't know how to interpret them. what are major characteristics to look at ? How to characterize my model performance ? Here is an example of output. Ep...
H: Organizing a csv file of multiple datasets into a list of Pandas dataframes I have a csv file, containing results from a Computational Fluid Dynamics (CFD) simulation (a sample of my csv file is attached as a google drive link; file size: 1,392KB). In particular, the csv file has information about multiple streamli...
H: Obtaining column values for a dataframe from another dataframe based on a common column variable I have 2 dataframes: df1 = pd.DataFrame({"animal": [Cat, Dog, Rat, Bull, Dog, Bull, Bull, Dog, Cat, Rat, Dog], "lifeSpan": [2, 4, 6, 0, 4, 0, 0, 4, 2, 6, 4]}) df2 = pd.Dataframe({"animal":[Bull, Cat, Rat, Dog]}) The "Li...
H: How to make a linear model with a constant value in R? I'm working on an unassessed homework problem from unpublished course notes of a statistics module from a second year university mathematics course. I'm trying to plot a 2-parameter full linear model and a 1-parameter reduced linear model for the same data set....
H: Different number of features in train vs test when using Label Encoding This is not a duplicate of Different number of features in train vs test There are some categorical columns in my data, and the cardinality for each of them is large, so I chose to use LabelEncoding over OneHotEncoding. However, some categories...
H: Image classification vs medical grading problems For image classification problems like cat vs dogs, the output layer is 2. Image classification problems like diabetic retinopathy seem to be more of a grading classifier. Although the targets range from 0 to 4, (signifying the severity of the condition), is it bette...
H: Using Sklearn's predefined split I am working on a binary classification task using SVM. The dataset is quite large so I don't want to use k-fold CV for parameter tuning, but instead a simple train-validation-test split. I have done the following: X_train, X_test, y_train, y_test = train_test_split( X, y, strat...
H: Integer encoding and weighing when one feature consists of more names Hello I am trying to make a content based movie recommendation system and one feature is genre of the movie. I will give an integer number to each genre randomly. However, some movies are of more than 1 genre. I will use tf-idf for weigthing thes...
H: Audio not saving in google colab # all imports from IPython.display import Javascript from google.colab import output from base64 import b64decode RECORD = """ const sleep = time => new Promise(resolve => setTimeout(resolve, time)) const b2text = blob => new Promise(resolve => { const reader = new FileReader()...
H: 3 images as one input in CNN (U-Net) I have been advised by my supervisor that if my U-Net segmentation network has RGB images at the input then I could use the channels for different images - median filter for R, normalization for G, canny-edge detection for B (example). I have no idea how to do that. Tried to fin...
H: Vectorized method to find matching values between two columns I'm trying to locate the most recent rows within my Dataframe that contain the same values in two separate columns. Presently, I am doing this slowly with looping, but I suspect there's a way to cleverly use the apply method or some other vectorized func...
H: How can I avoid requiring global information for performing regression on meter variables? Note: With a meter variable a timestamped value is the sum of all previous differences plus a difference to the most recent value. Think of a electricity meter counting the use of energy. The goal here is to perform some form...
H: What are the possible approaches to fixing Overfitting on a CNN? Currently I am trying to make a cnn that would allow for age detection on facial images. My dataset has the following shape where the images are grayscale. (50000, 120, 120) - training (2983, 120, 120) - testing And my model currently looks like the...
H: imblearn error installing smote I wanna install smote from imblearn package and I got the Following error: ImportError Traceback (most recent call last) <ipython-input-10-77606507c62c> in <module>() 66 len(data[data["num"]==0]) 67 #balancing dataset ---> 68 from imblearn.over...
H: How is the min_rank used with the flights database I'm exploring the https://r4ds.had.co.nz/transform.html#add-new-variables-with-mutate r for data science handbook and don't really understand the min_rank() operator. Doing the exercises it asks to Find the 10 most delayed flights using a ranking function. How do ...
H: How to handle date data for Knn? I'm working on a project about predicting kickstarter project success(classification) and my dataset has many columns that could be used as features such as : state_changed_at, launched_at, created_at. Now the dataset has these features on unix timestamps. Do I need to convert d...
H: How to calculate prediction error in a LSTM keras I have an LSTM which I have constructed and run in keras using python. I use this model to predict $n$ points into the future for a time series forecasting problem. When I use a method such as ARIMA to make the forecast I am able to generate prediction errors for...
H: NN for fuzzy classification What loss-function / optimizer to use for fuzzy classification problems? E.g: Four categories hot, mild, cold, freezing. Edit: I use one-hot encoding and have ~ 60 datapoints. AI: Adding to J.C. answer, please note that you don't have to stick with one-hot encoding. For your hot-mild-col...
H: Customer Targeting for CRM Marketing Campaign I need help or ideas to solve the below business challenge. Sample questions has been provided. A snapshot of the sample data has been attached below: AI: Can you share all available columns in the data set? its hard to tell what data is there to use. Given the data you...
H: What is the difference between reconstruction vs backpropagation? I was following a tutorial on understanding Restricted Boltzmann Machines (RBMs) and I noticed that they used both the terms reconstruction and backpropagation to describe the process of updating weights. They seemed to use reconstruction when referr...
H: Machine learning Classification model for binary input and output data I have a large longitudinal dataset with 5 minute granularity for a period of around 30 months from thousands of households. I would like to classify them using a binary output (0/1) based on the input which is also a set of binary variables (se...
H: Evaluating performance of Generative Adverserial Network? What is the best way to evaluate performance of Generative Adverserial Network (GAN)? Perhaps measuring the distance between two distributions or maybe something else? AI: I think it depends on what exactly you're doing with the GANs. If you're generating im...
H: How to implement a Fourier Convolution layer in keras? I'm currently investigating the paper FCNN: Fourier Convolutional Neural Networks. The main contribution of the paper is that CNN training is entirely shifted to the Fourier domain without loss of effectiveness. The proposed architecture looks as follows: The ...
H: Adapting Neural Network to new domain without labels Is there an approach for the following problem: Lets say, I trained a neural network on a big dataset for categorizing different fruits in $k$ classes. Afterwards I got a nice model, which performs very well. Now I want to use the model for categorizing fruits i...
H: Tensorflow (or Keras) vs. Pytorch vs. some other ML library for implementing a CNN I am looking into implementing a convolutional neural network for a research problem. I've heard of deep learning libraries like Pytorch and Tensorflow and was hoping to get some additional information about their suitability for my ...
H: Want suggestions on choosing open source embedded BI tool I need some suggestions from all group members regarding the open source reporting/dash-boarding tool which fulfills below specific requirements apart from some basic BI functionalities: 1. Can be embedded inside a web 2. Interactive (filters and one chart s...
H: How Can I Solve it? TypeError: fillna() got an unexpected keyword argument 'implace' I am trying to replace NaN values in a given dataset with this import pandas as pd import quandl import math df.fillna(-9999, implace=True) But I keep on getting this error: ** Traceback (most recent call last): File "regression...
H: How to think about - and sometimes impute - geographic distances I have a dataset with one of the (important) features being the geographic distances from NYC. Of course, some of the values are missing.... The goal is predicting whether people with certain attributes (proximity being one of them, and the typical ag...
H: Abbreviation in Orange's contingency table What do the scores ARI and AMI mean in Orange's contingency table? AI: ARI stands for adjusted Rand index and AMI stands for adjusted mutual information. They are metrics for clustering. Remark: ARI might take negative values. The AMI takes a value of 1 when the two par...
H: What would you do in Knn specific case I'd like to know what would you do in this specific and unrealistic case appliying Knn when k = 1, k = 2 and k = 3. Class 1 individuals: [1,1] [2,2] [2,4] [2,5] Class 2 individuals: [3,1] [4,1] [4,2] individual to classify: [2,1] Plot: I don't know if there would be any cri...
H: Should I remove outliers if accuracy and Cross-Validation Score drop after removing them? I have a binary classification problem, which I am solving using Scikit's RandomForestClassifier. When I plotted the (by far) most important features, as boxplots, to see if I have outliers in them, I found many outliers. So I...
H: What's The Difference Between The Terms Predictor And Feature For the term 'predictor', I found the following definition: Predictor Variable: One or more variables that are used to determine or predict the target variable. Whereas Wikipedia contains the following definition of the word 'feature': Feature is an...
H: Input shape in a multivariate RNN So I've seen this: Keras LSTM with 1D time series And this: Multi-dimentional and multivariate Time-Series forecast (RNN/LSTM) Keras I have many, many, many accountIDs, and 40 or more features associated with them for the start of each week since 2017. I'm attempting to predict ex...
H: Classification loss function: how to implement individual weights for each observation and class The problem I have to solve is a classification problem. The costs of a misclassification are very different (but known) for the various observations, so I plan to include them by assigning weights to each observation a...
H: plot the histogram of purchases i have a dataframe with 34154695 obs. in a dataset a Class variable with value 0 indicate "not purchased" and 1 indicate "purchase". > str(data) 'data.frame': 34154695 obs. of 5 variables: $ SessionID: int 1 1 1 2 2 2 2 2 2 3 ... $ Timestamp: Factor w/ 34069144 levels "2014-04-...
H: Information about LTSM RNN backpropagation algorithm I am attempting to make a LTSM RNN in python from scratch and I have completed the code for forward pass but I am struggling to find a clear outline of the equations I need to calculate to get the gradients using back-propagation. Is there any straightforward res...
H: When is a neural network better "traditional" models like decisions trees and lassos? There's a whole theory of statistical inference based off calculus studying consistency, efficiency, robustness, BLUE, unbiasedness of linear models (Gaussian,Exponential, Chi-square, F-distribution, etc)... that make up regressio...
H: PCA: projection of positive data on negative side of plane I did PCA on my data and projected the data on first two eigen vectors. After projection I see that the scatter plot of the data starts from [-1,-1]. My data is all positive. Is it correct for the data to be negative in the projected space. AI: Yes, it is, ...
H: Curvature - Linear Assumption They asked if the linear assumption is correct, but I just see a graph and based on the data I was taught that a curvature is nonlinear so nonlinear means that a graph is incorrect? What is the assumption? I know this may seem stupid, but I still haven't grasped the question. AI: Yes,...
H: Sparse matrix in R based on the data frame Suppose I have book ratings in the form of data frame (where 0 means no rating): $\begin{array}{|c|c|c|} \hline \textbf{User.ID}& \textbf{ISBN} & \textbf{Book.Rating} \\ \hline 276725 & 034545104X & 0 \\ \hline 276726 & 0155061224 & 5 \\ \hline 276725 & 3257224281 & 7 \...
H: Analyzing Videos using Deep Learning Is there any work done on analyzing sequence of frames from a video using Deep Learning techniques? By "analyzing" I mean like memorizing them in order to classify or predict something (e.g. by taking into account first 10 frames of a video the model can make some sort of conclu...
H: Implementing a custom hard sigmoid function I need to implement an activation function that is similar to Keras's "hard-sigmoid", only for different limit values: 0 if x < 0 1 if x > 1 x if 0 <= x <= 1 How do I implement it with a tensorflow backend Keras? AI: Based on this post, hard-sigmoid in Keras is implemen...
H: Is the magnitude of the gradient a weakness of Gradient Descent? The formula for Gradient Descent is as follows: $$ \mathbf{w} := \mathbf{w} - \alpha\; \triangledown C $$ The gradient itself points in the direction of steepest ascent, therefore it is logical to go in the opposite direction by subtracting it. But be...
H: How Do I Learn Neural Networks? I'm a freshman undergraduate student (mentioning this so you may forgive my unfamiliarity) who is currently doing research using neural networks. I've coded a three-node neural network (that works) based on my professor's guidance. However, I'd like to pursue a career in AI and Data ...
H: Maximize the margin formula in support vector machines algorithm I was recently reading about support vector machines and how they work and I stumbled on an article and came across Maximize the distance margin. Can anyone tell me what do we have to minimize here? I wasn't able to understand this part I pasted below...
H: Neural Network unseen data performance I started dabbling in neural networks quite recently and encountered a situation which is quite strange (at least with my limited knowledge). The problem I'm using a NN is a regression problem which tried to predict the sales of a product for a particular kind of promotion in ...
H: Understanding LSTM input shape for keras I am learning about the LSTM network. The input needs to be 3D. So I have a CSV file which has 9999 data with one feature only. So it is only one file. So usually it is (9999,1) then I reshape with time steps 20 steps timesteps = 20 dim = data.shape[1] data.reshape(len(dat...
H: training and Predicting probabilities using logistic regression model I have these game data where the output variable is continous which indicates probability of winning. How do I train my classification model using this probabilites and predict output probabilites for test data AI: Since your output variable is c...
H: Example of a problem with structured output labels I'm studying SSVM (Structured SVMs). On my book is stated that Structured SVM is an extension of the SVM, in which Each sample is assigned to a structured output label z ∈ K, e.g. partitions, trees, lists, etc. It's not clear to me what a structured output labe...
H: Recurrent Neural Network (LSTM) not converging during optimization I am trying to train a RNN with text from wikipedia but I having having trouble getting the RNN to converge. I have tried increasing the batch size but it doesn't seem to be helping. All data is one hot encoded before being used and I am using the A...
H: Context classification problem I have a bunch of articles about science from a certain website. When a new article is published, I want to determine if that article is really talking about science (and not politics for example). How can I do that? What machine learning technique shroud I use? I'm thinking at using...
H: Financial Time Series data normalization I'm using Keras in R to predict financial time series. It's easy to normalize price, simply compute returns or log returns, usually it's enough. I want to use Goldman Sachs Financial Conditions Index and MSCI World Index to predict other securitites and I want to use levels ...
H: How to normalize just one feature by scikit-learn? Wanna apply a specific scaler, say StandardScaler, on a specific feature, keeping other features intact. the dataset format is something like: [ [1, 0.2, 1000], [2, 0.1, 2400], [3, 0.9, 7620] ] I need to transform only one column, the third in this example. I don'...
H: Create recommendation system to recommend products to a customer on any e-commerce website The recommendations should be based on the products consumer has searched on other sites like Google. This basically means, that recommendations have to be made to the user based on his/her search history. No other informati...
H: Calculate weighted mean for two columns and hundreds of rows? I'm trying to teach myself basics of R and I couldn't find the answer: Say, I have a csv file and I want to calculate weighted mean for each subject such that I have a mean mu = 0.015*1030+0.16*26930+0.24*0+0.87*250+0.29*310+0.77*6240+0.98*3730+0.98*0+0....
H: Select two best classifier using F1-score,Recall and precision I have three classifiers that classify same dataset with these results: classifier A: precision recall f1-score micro avg 0.36 0.36 0.36 macro avg 0.38 0.43 0.36 weighted avg 0.36...
H: AUC ROC in keras is different when using tensorflow or scikit functions. Two solutions for using AUC-ROC to train keras models, proposed here worked for me. But using tensorflow or scikit rocauc functions I get different results. def auc(y_true, y_pred): auc = tf.metrics.auc(y_true, y_pred)[1] K.get_ses...
H: Non-linear Regression For example suppose I've data set which looks like: [[x,y,z], [1,2,5], [2,3,8], [4,5,14]] It's easy to find the theta parameters from those tiny data set. Which is theta = [1,2,0] z = 1*x + 2*y + 0 But if my data set are non linear. Suppose: [[x,y,z], [1,2,6], [2,3,15]]] If i choose t...
H: Training AI to do repetive retouching job I'm new to AI, so bear with me... What would be the easiest way to do this using AI? Where do I start? What technologies are already available? Sample data: 50.000 before images ex. there's a red ball that needs to be removed 50.000 after images the red ball is removed out...