text
stringlengths
83
79.5k
H: Choosing the periodicity in a SARIMA model Given the order (P,D,Q,s) of a SARIMA model, s is an integer representing the number of periods in a season. Intuitively, I suppose it would be 12 for monthly data and 4 for quarterly data. But if I have hourly data (for a whole year) and I'm using only a small number of ...
H: Labels are not given for multiclass classification problem I have probably a weird question. If you are dealing with a multiclass classification problem, do you always have already determined target output/labels? I have e.g. a huge data set with a lot of features about different city areas (population, population ...
H: where can i find the algorithm of these papers? I am reading about clinical NER I found 2 papers talking about it Paper 1 and Paper 2 They are talking about algorithms and ML has been used to approach clinical NER. I could not find anywhere on how exactly these algorithms are implemented in these papers. Can anyone...
H: why is MSE of prediction way different from loss over batches I am new to machine learning so forgive me if i ask stupid question. I have a time series data and i split it into training and test set. This is my code: from numpy import array from tensorflow.keras.models import Sequential from tensorflow.keras.layers...
H: How much is the Class Imbalance Problem rates? I'm working on a data set and wanted to know is there a standard rate about Class Imbalance problem or not? I have 47 samples in Class A and 150 Sample in class B , should I use Class Imbalance Technique or these rates are normal? AI: There is no general rule but you b...
H: How to use Inception v3 in Tensorflow I am trying to import Inception v3 in TensorFlow. I wish to apply it after reading this tutorial on object detection. AI: Keras, now fully merged with the new TensorFlow 2.0, allows you to call a long list of pre-trained models. If you want to create an Inception V3, you do: fr...
H: Evaluate clustering by using decision tree unsupervised learning I am trying to evaluate some clustering results that a company did for some data but they used an evaluation method for clustering that i have never seen before. So i would like to ask your opinion and obviously if someone is aware of this method it w...
H: On which step should use SMOTE technique for over sampling? I want to use SMOTE technique for over sampling but I don't know on which step on pre-processing I should use it. My preprocessing steps are: Missing values Removing Outliers Smoothing Data Should I use SMOTE before all of these steps or its better to us...
H: Does Feature Normalization affect Gradient Descent | Linear Regression am new to datascience and i want to learn linear regression so i coded linear regression from scratch and performed gradient descent to find the best $w_\theta$ and $b_\theta$ values using a tutorial. And it went just fine i was able to find the...
H: What is Sentiment Bias? How will it affect a Lexicon Based Sentiment Analysis? I am comparing deep learning and lexicon/rule-based models for sentiment analysis. When I was doing some research into the limitations of lexicon based models, I came across a journal article that mentioned sentiment bias. However, this ...
H: Why must a CNN have a fixed input size? Right now I'm studying Convolutional Neural Networks. Why must a CNN have a fixed input size? I know that it is possible to overcome this problem (with fully convolutional neural networks etc...), and I also know that it is due to the fully connected layers placed at the end ...
H: Chunking Sentences with Spacy I have a lot of sentences (500k) which looks like this: "Penalty missed! Bad penalty by Felipe Brisola - Riga FC - shot with right foot is very close to the goal. Felipe Brisola should be disappointed." "Penalty saved! Damir Kojasevic - Sutjeska Niksic - fails to capitalise on this...
H: Input 0 is incompatible with layer conv2d_2: expected ndim=4, found ndim=3 I get this error in Tensor flow, What does it mean and how can I fix it? import pickle import keras from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Activation from keras.layers import Conv2D, MaxPo...
H: How to gauge the Complexity of Pre trained Neural Networks? What does one mean when they are talking about the simplicity of the networks? Does it mean that the shallower the networks the simpler they are, or does it mean that lesser the number of trainable parameters, simpler the models? AI: It can mean both, depe...
H: 2nd, 3rd, Nth closest guesses I have used the KMeans algorithm to create an engine that can guess the cluster that a particular set of input data will fall into. Can I use it to guess the 2nd closest cluster, 3rd closest, and so on? Currently, I am using the sklearn.cluster.KMeans library if that's any help - it do...
H: "Super" Optimizer concept I was wondering why there isn't a feature built into common-use ML libraries, like Keras, that plugs many different combinations of layers and nodes to multiple models and trains them simultaneously to single out the best NN architecture for your problem? For example, given training data,...
H: How can I override the values of 1 column in a big dataframe using a small second dataframe? I have a Pandas dataframe (donations_df) that contains thousands of donations. Each donation row has many columns, but the two key ones for my question are: A recipient_id column indicating who received the donation An of...
H: Detect if word is «common English» word or slang word I have a huge list of short phrases, for example: sql server data analysis # SQL is not a common word bodybuilding # common word export opml # opml is not a common word best ocr mac # ocr and mac are not common words I want to detect if word is not a common wor...
H: Diff. in P-value & F-Stat. Multiple linear regression Even if we have individual p-values for each predictor. Why do we need overall F-statistic? I read this solution but I am not sure if I get it right. Can someone please explain? Source: "An Introduction to Statistical Learning: with Applications in R" by Jame...
H: Is there a common strategy to measure if a difference-significance of two areas under two ROC curves I conduct sound detection experiments with mice. I have a stimulus sound and a "noise" sound that shoukd be ignored. I want to measure how well the mouse ignors the noise (with respect to, say, ignoring 100% of the...
H: How to handle different categorical embedding sizes in hold out data set I have a pytorch tabular dataset with zip code as a categorical embedding. I'm getting great results on the test set. When I go to run my hold out sample through, it errors out because I have more zip codes in the hold out then what the mode...
H: Improve performances of a convolutional neural network I am doing image classificaition, and to do this I have built the following neural network: def Network(input_shape, num_classes, regl2 = 0.0001, lr=0.0001): model = Sequential() # C1 Convolutional Layer model.add(Conv2D(filters=96, input_shape=input_shape, ...
H: Convolutional layers without pooling I am studying the CNN architecture of the AlexNet, and I have seen that it has convolutional layers without pooling in between: but I don' understand why this is done. Wouldn't be better to have something like CONV - POOLING - CONV - POOLING , and so on, instead of CONV - POOLI...
H: When should we start using stacking of models? I am solving a Kaggle contest and my single model has reached score of 0.121, I'd like to know when to start using ensembling/stacking to improve the score. I used lasso and xgboost and there obviously must be variance associated with those two algorithms. So stacking ...
H: Why might trees work so much better than boosting classifiers? I am predicting 10 classes label encoded using scikit-learn with 6 factors, 1.2M cases. DecisionTreeClassifier RandomForestClassifier ExtraTreesClassifier give accuracies (and precision and recall) of 0.9 AdaBoostClassifier GradientBoostingClassifier gi...
H: Accuracy of KFold Cross Validation for Neural Network I have a neural network that Im evaluating using 10 -Fold cross validation. The validation accuracy for a fold changes alot during training in the range of -+10% So for example the validation accuracy of a fold would range between 80% and 70%. My question is wh...
H: How is loss computed for multiclass CNN with an output layer larger than the number of classes? I have built a CNN in pytorch for classifying the Fashion-MNIST dataset (10 classes). The images are 28x28. I have constructed the final layer in my model as an output of 50. (i.e. $nn.Linear(100, 50)$). Also I a...
H: Remove noise by clustering on which step of pre-processing is better? I am working on a classification task. The dataset is a UCI data set about machine learning with 200 observations and 2 classes. Part of my model includes the following preprocessing steps: remove missing values normalize between 0 and 1 remove ...
H: How to apply data binning on reviews data? I need to apply data binning on a set of reviews, I have searched for some data binning methods for reviews and long-texts and couldn't find anything other than classification. Is NLP or classification the only method to bin long-text data? AI: You can bin on Len of the da...
H: Solutions for big data preprecessing for feeding deep neural network models built with TensorFlow 2.0? Currently I am using Python, Numpy, pandas, scikit-learn to do data preprocessing (LabelEncoder, MinMaxScaler, fillna, etc.), and then feeding the processed data to DNN models built with Tensorflow 2.0. This input...
H: Pearson vs Spearman vs Kendall What are the characteristics of the three correlation coefficients and what are the comparisons of each of them/assumptions? Can somebody kindly take me through the concepts? AI: Correlation is a bivariate analysis that measures the strength of association between two variables and t...
H: What is a channel in a CNN? I was reading an article about convolutional neural networks, and I found something that I don't understand, which is: The filter must have the same number of channels as the input image so that the element-wise multiplication can take place. Now, what I don't understand is: What is a ...
H: Use of decision trees for classifying images I am new at Machine Learning and reading about it I wonder if it is possible (and convenient) to use decision trees to classify images. For instance, to classify faces AI: If you're looking to classify faces, you can use decision trees, however, they are not expected to ...
H: How to build an overfitted network in order to increase performances I am learning how to implement CNN, and searching on the internet I have found that a trick to design a good network is to first build it in such a way that it overfits, and then use regularization to elimnate overfitting and have a good performin...
H: What does it mean the term variation for an image dataset? I am working with convolutional neural networks, and I have seen that often we need to pre process the images before feeding them to the network. In particular, I have seen that often we have to do image augmentation using an image generator. Now, when look...
H: What is cohen kappa metric, implementation in Python? Can somebody explain indetail explanation on Quadratic Kappa Metric/cohen kappa metric with implementation in Python AI: Quadratic Kappa Metric is the same as cohen kappa metric in Sci-kit learn @ sklearn.metrics.cohen_kappa_score when weights are set to 'Quadra...
H: Using Amazon Personalize to build a Recommendation System I would like to build a recommendation system based only in the items metadata. I have an input vector with some desirable topics that the user want to read about, for example: (self-help, yoga, sports) On the other hand I have a dataset with books with T...
H: python tsne.transform does not exist? I am trying to transform two datasets: x_train and x_test using tsne. I assume the way to do this is to fit tsne to x_train, and then transform x_test and x_train. But, I am not able to transform any of the datasets. tsne = TSNE(random_state = 420, n_components=2, verbose=1, pe...
H: Is it possible to change test and train data size when using crossvalind function with Kfold param? I was looking at MATLAB Help and want to work with "crossvalind" function. It would two parameters that you can use it. If you use "HoldOut" you can define partition size of test and train data set and when you use ...
H: Logistic regression threshold value How can i set the threshold value for the target variable. For example if a target variable is chance_of_admit and it has values from 0 to 1, how can I pick a value and so that I can convert it to 0's and 1's to perform logistic regression AI: So there two ways of doing this, IMH...
H: How is "relevance" defined in information retrieval outside the context of systems with user feedback? I've seen information retrieval systems that return some results from a query, and then the user rates these results as either "relevant" or "not relevant". What can you do if you do not have user feedback? E.g. s...
H: image classification with training set with 4 classes and test set with 3 classes I have to do image classificaion with a CNN, and for doing this I have been given a training set with 4 classes and a test set with 3 classes. I am really confused because I don't know if this is going to influence my prediction. It ...
H: Evaluating the performance of a machine learned recommendation system I have a set of resumes $R=\{{r_1,...,r_n\}}$, which I've transformed to a vector space using TF-IDF. Each resume has a label, which is the name of their current employer. Each of these labels comes from the set of possible employers $E = \{{e_1,...
H: Difference between packaged sentiment analysis tools (TextBlob/NLTK) and training your own classifier? I'm new to ML and training classifiers in practice, so I was just wondering what the difference was between the built-in sentiment tools of packages such as NLTK and TextBlob as compared to manually creating a cla...
H: Understanding AC_errorRate loss function I'm reading an article about Rolling Window Regression: a Simple Approach for Time Series Next value Predictions. He explains about 5 different loss functions. I managed to understand the first four, but I don't understand the fifth one: Almost correct Predictions Error ra...
H: Problem with overfitting for a CNN I am doing image classification with a CNN and I am having trouble building a network that does not do overfitting. I have in my training set 2000 images of 4 classes, while in my test set I have 3038 of the same 4 classes. My CNN is the following: def Network(input_shape, num_cla...
H: NLP and one-class classifier building I have a big dataset containing almost 0.5 billions of tweets. I'm doing some research about how firms are engaged in activism and so far, I have labelled tweets which can be clustered in an activism category according to the presence of certain hashtags within the tweets. Now,...
H: How to interpret classification report of scikit-learn? As you can see, it is about a binary classification with linearSVC. The class 1 has a higher precision than class 0 (+7%), but class 0 has a higher recall than class 1 (+11%). How would you interpret this? And two other questions: what does "support" stand fo...
H: What is my training score the mean_train_score or mean_test_score? I am using sklearn to train some models (random forest, decision tree). For the training I am using RandomsearchCV with Stratified k-fold as cross-validation. Then I make a predictions on the test set and calculate the test score. However, I would l...
H: How to extract features from the encoded layer of an autoencoder? I have done some research on autoencoders, and I have come to understand that they can also be used for feature extraction (see this question on this site as an example). Most of the examples out there seem to focus on autoencoders applied to image d...
H: How to evaluate the K-Modes Clusters? K-modes algorithm is available here I want to do clustering of my binary dataset. I need to specify the number of clusters that I need as an output: KModes (n_clusters, init, n_init, verbose) My dataset contains 1000 lines and 1000 rows, I want to calculate the distance betwee...
H: Types of Regression Techniques? Can someone explain types of Regression Techniques, and Where do we use? Thanks in Advance. AI: There are various kinds of regression techniques available to make predictions. These techniques are mostly driven by three metrics (number of independent variables, type of dependent vari...
H: Difficulty interpreting word embedding vector similarity (spaCy) I calculate vector similarities like this: nlp = spacy.load('en_trf_xlnetbasecased_lg') a = nlp("car").vector b = nlp("plant").vector dot(a, b)/(norm(a)*norm(b)) 0.966813 Why are the vector similarities so high for unrelated words for the embedding? ...
H: Where are WEKA installed packages stored I would like to use the WEKA library in a Java program but I can't seem to find the methods I installed using WEKA's package manager. Does anyone know where the installed methods are stored? For clarification, I installed WEKA, installed the extra package using WEKA and can...
H: Calibrating Correlation I am facing a weird problem in my on going project and thought if someone here could help me out with this. Actually I have large data set. I have to perform a regression task on top of that. While doing the initial analysis and feature selection task, I did correlation of all the features w...
H: Training LSTM for time series prediction with nan labels I have a time series of features $x_1,x_2,x_3,...,x_n$. I want to make a prediction $y_1,y_2,y_3,...,y_n$ for each timestep. However, in my training data some of the $y$ can be nan. I'd like the fit to just ignore these (i.e. the cost for this pair measured $...
H: Trouble understanding the partial differentiation used in reinforcement learning I am studying deterministic actor-critic algorithms in reinforcement learning. I try to give a brief explanation of actor-critic algorithms before jumping into the mathematics. The actor takes in state $s$ and outputs a deterministic a...
H: How to use ADWIN with multiple columns I want to perform drift detection on data with multiple input values (x0, x1, x2, x3). I'm using an adaptive window algorithm found from sci-kit found here. Doing this from skmultiflow.drift_detection.adwin import ADWIN adwin = ADWIN() adwin.add_element(np.array([1, 2, 3, ...
H: Why I get AttributeError: 'float' object has no attribute '3f'? I am getting this error: AttributeError: 'float' object has no attribute '3f' I don't understand why I am getting it, I am following the example straight from the book "applied text analysis" The chunk of code in python is: total = sum(words.values())...
H: Deep learning model gives random results First I am new to machine learning if it is an obvious question, I am sorry. dataset_coefficients = loadtxt( 'in.csv', delimiter=',') dataset_answers = loadtxt( 'out.csv') X = dataset_coefficients[:, 0:4] y = dataset_answers model = Sequential() model.add(Dense(32, inpu...
H: Is not having overfitting more important than overall score (F1: 80-60-40% or 43-40-40)? I've been trying to model a dataset using various classifiers. The response is highly imbalanced (binary) and I have both numerical and categorical variables, so I applied SMOTENC and Random oversampling methods on Training set...
H: Carlification of the MSE loss sum symbol So I have a question regarding the MSE loss on the application of a Neural Network. Loss function: $\text{MSE} = \frac{1}{2} \sum_{i=1}^{n} (Y_i - \hat{Y_i}) ^ 2$ I am wondering for what the $\sum_{i=1}^{n}$ stands. Do I sum over the loss of all training examples for each...
H: Using categorical_crossentropy for binary classification Is it ok to use categorical_crossentropy for binary classification or is it better to use binary_crossentropy AI: Binary cross-entropy is a special case of categorical cross-entropy with just 2 classes. So theoretically it does not make a difference. If $y_k$...
H: How to treat time based ticket prices for train/test split I have a dataset of airfare price tickets that were scraped throughout a 6 month period where each observation represents a particular price for a specific flight on a specific date that it was scraped. In other words, a specific unique flight may appear mu...
H: Clustering initialization I'm running into a problem while working on clustering. I work on data with white Gaussian noise. All of the methods I have come across use some sort of random initialization to set up the mean and covariance matrix of the clusters. My question is: Since the initialization is random, ther...
H: Explanation behind the calculation of accuracy in deep learning model I am trying to model an image segmentation problem using convolutional neural network. I came across code in Github which I am not able to understand the meaning of following lines of codes for calculation of accuracy - def new_test(loaders,mode...
H: Are there some research papers about text-to-set generation? I have googled but find no results. Text-to-(word)set generation or sequence-to-(token)set generation. For example, input a text and then output the tags for this text: 'Peter is studying English' --> {'good behavior','person','doing something'} Thank you...
H: k-fold cross validation with RNNs is it a good idea to use k-fold cross-validation in the recurrent neural network (RNN) to alleviate overfitting? A potential solution could be L2 / Dropout Regularization but it might kill RNN performance as discussed here. This solution can affect the ability of RNNs to learn and...
H: Are stationarity and low autocorrelation the prerequisite of regression model? As said in the title, are stationarity and low autocorrelation the prerequisite of general / linear regression model ? That is, if a time series is non-stationary or has large autocorrelation, would it be easier or harder to be predicted...
H: Help getting corresponding dataframe values I have two dataframes: self.thisSession_df: id exerciseId sets 1 1 12 2 1 14 2 2 15 2 2 15 self.exercises_df: id exerciseName 1 Squat 2 Pullup I would like t...
H: Evaluating likelihood of egg breaking when falling in random container on concrete I am working on a project where I would like to predict whether an egg will break if it is put in a container that is then dropped on concrete. I am looking at the different factors that play a role in whether the egg will break. So ...
H: Thoughts on Feature Engineering of a duration_in_program Variable So I am trying to predict which customers would leave a loyalty program sponsored by X firm, using an ML classification model. I further believe that the duration for which a customer has been in the program affects their likelihood of staying/leavin...
H: Representing a higher-dimensional chart I'm hitting an unusual roadblock in my quest to represent a set of data for the layman, and thought I'd ask for advice on how best to accomplish this task. My data points are represented by a 4-float tuple (a, b, c, d), the sum of which is constant. These represent test condi...
H: Text embeddings and data splitting I have created some document embeddings which were then used further in text classification tasks. After revisiting my code I was unsure about the workflow I used to train the document embeddings. At the moment I am creating the document embeddings based on the complete corpus ava...
H: the library 'transformers' works also with older version of Tensorflow? i am working with Tensorflow version 1.14 and i would like to use the bert embedding. In order to do so, i was thinking to use the transformers library( https://pypi.org/project/transformers/) but i am not sure if that will work with my tenso...
H: F1_score(average='micro') is equal to calculating accuracy for multiclasification Is f1_score(average='micro') always the same as calculating the accuracy. Or it is just in this case? I have tried with different values and they gave the same answer but I don't have the analytical demonstration. from sklearn.metrics...
H: ML in R (caret-package) missing hyperparameters I have a pretty specific question regarding the caret package however I still hope to finde help here. I recently worked with the caret package and trained a multilayer perceptron with method = 'mlp'. I looked up the github page of Max Kuhn (developer of caret), and ...
H: Would Topic Modelling be classified as NLP or NLU? I recently started my journey into the world of NLP, it's been one heck of a ride. I'm currently trying to understand whether topic modelling would be considered as NLP or NLU. Initially I would assume that topic modelling would be classified as NLP. However, if we...
H: How to create a score for a SWOT analysis (strengths, weaknesses, opportunities, and threats)? I'm developing a participatory social environmental diagnostic. To do this, I'm using primary (qualitative data from interviews with stakeholders) and secondary data (local socioeconomic data). From this data, I distribu...
H: Can i build an image classification model where each image has multiple labels? If I am building a model where I need to predict the vehicle, color of it, and make of it, then can I use all the labels for a single image and build my model around it. Like for a single image of a vehicle which is a car (car1.jpg) wil...
H: How to select features for a ML model I have a dataset with 5K records for binary classification problem. My features are min_blood_pressure, max_blood_pressure, min_heart_rate, max_heart_rate etc. Similarly, I have more than 15 measurements and each of them have min and max columns amounting to 30 variables. When ...
H: LSTM with linear activation function I'm trying to do multi-step regression and I use an output layer: LSTM(1, activation='linear', return_sequences=True) Is this the wrong way of achieving this? Should I use a TimeDistributed(Dense(1)) as output? If yes, why? AI: I don't see any particular advantage in using linea...
H: How to split train/test data 50% by class and grouping by Object ID in R? I get pixel values ​​from it using reference polygons. Extracted pixel values are in data frame, but one row represent extracted values for single pixel. In the classification I need to split the dataset into test (50%) and training (50%) by ...
H: How to define the number of features to select in RFECV? I am trying to work on feature selection stage for my dataset. I am a newbie to ML. I have around 60 columns and am trying to select top 15 features. I came to know about RFECV for which I wrote a code like as shown below. I am aware that n_features is presen...
H: How do I make a submission of a CNN? I have built a CNN to do image classification for images representing different weather conditions. I have 4 classes of images : Haze, Rainy, Snowy, Sunny. I have built my CNN and evaluated the performances. N ow I have been given a blind test set, so images without a label, and...
H: Where do I find the .csv file for the submission after creating it? I am making a submission of a classificaition problem with CNN on Google Colab. So I have arrived at doing this: subm.to_csv('submission.csv', index=False) so in theory I should have finished. The only problem is that I don't know where to find th...
H: What is the difference between a regular Linear Regression model and xgboost with objective set to "reg:linear"? As I understand it, a regular linear regression model already minimizes for squared error, which means that it is the theoretical best prediction for this metric. Does xgboost's "reg:linear" objective d...
H: Monitoring machine learning models in production I am looking for tools that allow me to monitor machine learning models once they are gone to production. I would like to monitor: Long term changes: changes of distribution in the features with respect to training time, that would suggest retraining the model. Shor...
H: Trouble in calculating the covariance matrix I'm trying to calculate the covariance matrix for a dummy dataset using the following formula, but it's not matching with the actual result. Let's say the dummy dataset contains three features, #rooms, sqft and #crimes. Each column is a feature vector, and we have 5 dat...
H: Exception: Data must be 1-dimensional appears when trying to make a submission I am doing image classification, and until now I have built my network and evaluated it. The only thing that remains to do is to do the submission, so I have a blind test set which contains images with no labels, and using the model I ha...
H: Which combination of 3 hyperparameters to combat overfitting of a convolutional neural network? I have a small dataset with which I want to train a CNN by using Data Augmentation. Since the CNN is overfitting due to the small data set, I would like to optimize some hyperparameters. However, since I would like to us...
H: Mismatch between optimum features and grid scores using RFECV? I have a dataset with 5K columns focused on binary classification. I have more than 60 columns. I am trying to find the best features through RFECV approach. Though it produces 30 optimum features, when I plot in graph, I only see 12 features. Please se...
H: Spyder 4: changed behavior or "run cell" / run selected code I'm a user of spyder. This weekend I updated to spyder 4, which seems to have received many usefull improvements, however I have a problem with running selected code. The logic seems to have changed. Unfortunately for me it is very important, that I can s...
H: How to distinguish informative and non-informative feature - Feature importance? I have a dataset with 5K records focused on binary classification problem. I have more than 60 features in my dataset. When I used Xgboost, I got the below Feature Importance plot. However I am not sure how to find out whether all of t...
H: How to transform specific type feature to yield better prediction? I have a dataset with 5K records focused on binary classification problem. I have about 60 features. Out of 60 features, around 45-46 features are of 'Min' and 'Max' type. For example, minimum blood pressure, maximum old pressure, minimum heart rate...
H: CV(Curriculum vitae) Recommendation System guidance I am building a recommender system which matches people's CV with a vacancy. So far, I used TF-IDF & Cosine Similarity to get a matching score between a vacancy and a candidate's CV. I want to know whether there are any other approaches to create such a recommenda...
H: doubt in improvement of performances given by a layer in a deep neural network Today I was discussing about neural network with a friend, and he said that the more layers we add, the less increase in accuracy each layer gives individually. Is this fact true? I know that it is better to go deep then wide when build...
H: Why is the code provided in this book mostly commented out? I am new to text mining and have been playing around with the code provided in the book Applied Text Analysis With Python. I came to a problem with this specific part: https://github.com/foxbook/atap/blob/master/snippets/ch08/oz.py In this python script, m...
H: Constructing the Confusion matrix from given metrics I am given the following metrics for a certain classifier : -Total number of cases in the dataset = 110 -Accuracy: 92.7% -Precision : 96.9% -Recall : 95% Are this information enough to reconstruct the confusion matrix? AI: [edit thanks to comment] I'm assum...
H: Change number format of confusion matrix I have the following confusion matrix: I would like to change the format of the numbers that, when they exceed the value 99, appear in scientific format. I would like them to appear in a standard format. That is: 3.3e + 02 would be 330. This is the function I have implem...