text stringlengths 83 79.5k |
|---|
H: Using data agumentation for a frozen pre-trained model
I was following the following article with regards to doing transfer learning:
https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html
In the section, Using the bottleneck features of a pre-trained network: 90% accuracy i... |
H: Why do seaborn.dist and pyplot.hist generate two different looking histograms on the same data?
I'm looking at telecom customers data. Two of the variables I'm looking at currently are:
Monthly Charges - The total amount charged to the customer monthly.
Is Senior Citizen - Whether the customer is a senior citizen.... |
H: Getting Value Error while training a model for binary classification
While training a sequential model using Keras, Im getting this error
The model summary is shown below
Layer (type) Output Shape Param #
=================================================================
dense_1 (Dens... |
H: How to barplot output of pandas.describe() from multiple datasets
I'm trying to compare the differences and similarities between 10 dataframes. I have decided to df.describe() each dataframe in turn and accumulate the results into a new dataframe.
count mean std min 25% 50% 75% ... |
H: "Stationarity of statistics" and "locality of pixel dependencies"
I'm reading the ImageNet Classification with Deep Convolutional Neural Networks paper by Krizhevsky et al, and came across these lines in the Intro paragraph:
Their (convolutional neural networks') capacity can be controlled by varying their depth a... |
H: How to compare different similarity measurements in text clustering?
I have a dataset which contains vectors generated from subtitles (each column represents a genre, each row is a movie name), my purpose is to find the most similar movie titles, I want to use different distance/similarity measurements and compare ... |
H: Is there any method to determine which clustering algorithm to use on a particular dataset?
I'm having a hard time getting kmeans to cluster data effectively. It fails to segment data well even for a simple attribute with 5 categories. I'm aware of DBSCAN, Hierarchical Clustering and GMM. However, just wanted to kn... |
H: How to define a neural model as linear or non linear
TL;DR: in what sense is the model of a neuron seen in the image above nonlinear?
In chapter 1, section 1.3 MODELS OF A NEURON of Simon Haykin's Neural Networks book, the standard model of a single neuron is described and visualised in the picture above.
Haykin ... |
H: unimportant features impact on model's performance
Using XGBoost and RandomForests, do unimportant features (according to the feature_importances_ attribute) hurt the model's performance?
Do I need to carefully select highly correlated and import features? Or do I throw everything in and hope that it can correctly ... |
H: Pandas change value of a column based another column condition
I have values in column1, I have columns in column2.
What I want to achieve: Condition: where column2 == 2 leave to be 2 if
column1 < 30 elsif change to 3 if column1 > 90.
Here is what i did so far, the problem is 2 does not change to 3 where column1 >... |
H: Is it normal that a classifier always wrongly predicts the same samples?
I'm trying to improve the accuracy of a classifier, a random forest one.
I built different models with the same hyperparameters but with different random seeds, trained them with the same training data, used the same test daata to make the pre... |
H: SRGAN Generator Architecture: Why is it possible to do this elementwise sum?
Consider the first residual block. Its first convolution layer takes in inputs:
THe PRELU's output
64 filters(64 outputs) each one being 3*3 with a stride of (1 ; 1)
So I think that the output of this convolution will have a different s... |
H: CrossValidation using glmnet and very high values of Lambda?
I am trying to run crossvalidation (folds=10) using glmnet library on my dataset. My outcome of interest is BMI and predictors include a set of clinical variables. My final goal is to use elastic-net regression to select features and also predict BMI. For... |
H: Can a Logsitic Regression model continue making predictions after removing predictions from the data set?
I have a logistic regression model that predicts churn (0 vs. 1). I was asked to use the model to predict on a historical group of non-churners, remove anyone who was marked as a churner, and then increase one ... |
H: Is Nvidia Jetson product family also suitable for machine learing model training?
I recently came accross these products (Nvidia Jetson) and they are all tagged as "edge", so i think they are designed only for machine learning inference and not model training.
They are quite interesting for their low power consumpi... |
H: Handling unwanted negative numbers
With me is a dataset collected from IoT sensors with one column labeled “Soil Humidity” measured in percentage. It stands to reason then that all the values be positive percentages, however there’s a mix of negative percentage in there which is undesirable.
Is there a way to hand... |
H: what should i learn for deep learning
i have studied the basic of machine learning ,algebra ,statics and probability.now i want start with deep learning for field of image recognition,classification.
i don't know where to start deep learning ,can anyone suggest me where to start and end like syllabus
AI: Have a loo... |
H: I have a 20.2 GB dataset which is entirely consisting of 1 file. Need help on how to open the file
Whenever I am dealing with datasets that have weird extensions that I have not encountered before, I typically open them with notepad to see how the data looks like before using pandas to analyze them. But this datase... |
H: How to generate 12 independent random weights which all add up to one
I'm using Palisade's @Risk software with a triangular distribution to generate 12 random weights which must add up to one, but I get a lot of negative numbers. Is there a straightforward way to set this up?
AI: I am afraid I do not know the soft... |
H: sckit-learn Cross validation and model retrain
I want to train a model and also perform cross validation in scikit-learn, If i want to access the model (For instance to see the parameter's selected and weights or to predict) i will need to fit it again.
I believe and according to my understanding if CV is training... |
H: Tensorflow 2 eager vs graph mode
I've been working through the tensorflow-2.0.0 beta tutorials. In the advanced example a tensorflow.keras subclass is used. The presence of the @tf.function decorator on train_step and test_step means the model executes in graph mode (not sure if that's the correct terminology, I m... |
H: Any issue with "overlapping" sliding windows in time-series data analysis?
I am developing some classification/regression models form accelerometry time-series data. So far, I have created datapoints by extracting features from non-overlapping sliding windows of the time-series data. I would like to try using overl... |
H: Which service could I use to train my networks?
My laptop's Intel i7 3630QM 2.4GHZ, 8Gb RAM and GXForce 670M are clearly not sufficient...
By reading some papers, I've written an SRGAN with Python Keras. At runtime there is no error but training only 2 images (324*324) with 1 epoch, batch size of 2 lasts too much..... |
H: How to feed data for ngram model?
I want to train an ngram language model
Let's say I have the following corpus:
The sliding cat is not able to dance
He is only able to slide
Because obviously he is the sliding cat
I am planning to use tf.data.Dataset to feed my model, which is fine
But I don't know if it is bette... |
H: Is RL applied to animal dispersion a valid approach?
I have an agent which has a medium-sized, discrete set of actions $A$: $10<|A|<100$. The actions can be taken over an infinite horizon of 1 second per timestep $t$. The world is essentially pictures from a static camera and the states $S$ are the amount of animal... |
H: perform cluster on a multiple dimensional data in R
I have a data set which has 2488 samples and each sample has 13 features.Now I want to perform cluster on this data set in R but I found k-means method usually for two dimensions data.So can any one help me? Many thanks!
AI: Short answer
You can use any number of ... |
H: Which method to use to remove trend from time series?
From what I understand, differencing is necessary to remove the trend and seasonality of a time series. So I assumed it basically does the same thing as signal.detrend from the scipy library.
But I tried differencing and then, separately, used signal.detrend and... |
H: Differences between a Statistician and a Data Analyst in industry
What is the Difference in the job of a Statistician and a Data Analyst In Industry? My take is that although both analyse data, a Statistician deals with the more theoretical aspects of data such as using mathematics to analyse data and to create mat... |
H: For a regression model, can you transform all your features to linear to make a better prediction?
I was thinking. Would it be a good approach to check your features one by one (assuming you have a manageable amount of them) and see the relationship they have with your target variable, if they have a non linear re... |
H: Where can Batch Normalization be used? CNNs or everywhere?
Should BatchNormalization be used only in CNNs or can they be used in Fully Connected Networks, Recurrent networks as well?
AI: A Batch Normalization layer essentially is normalizing outputs of your hidden units, so their outputs would always have a similar... |
H: DC GAN with Batch Normalization not working
I'm trying to implement DC GAN as they have described in the paper. Specifically, they mention the below points
Use strided convolutions instead of pooling or upsampling layers.
Use only one fully connected layer
Use Batch Normalization: Directly applying batchnorm to al... |
H: RL Sutton book, initial estimate of q*(a) for 10 arm testbed
The Sutton book does not mention what the initial estimate is for q*(a) before the first reward is received. In this code repo that seems to go along with the book: Sutton code repo
They have initialized it with 0 per snippet below:
def __init__(self, k... |
H: When I use SHAP for classification problem, it shows an output that is not 0 or 1. How can I overcome this?
I'm using Pima Indians Diabetes Database(https://www.kaggle.com/uciml/pima-indians-diabetes-database). I made predictions using XGboost and I'm trying to analyze the features using SHAP.
However when I use f... |
H: Dealing with new outliers after capping
I'm trying to cap outliers in a column of my pandas DataFrame.
Here's the boxplot for a column of my original data.
So, using code from this stackoverflow answer, I tried capping outliers.
Here's how capped column looks like, with new outliers after upper bound.
My probl... |
H: How to train a neural network for high recall?
I would like to train a neural network for named entity recognition to tag an unlabeled dataset of texts. The generated labels will then be checked via a crowdsourcing platform. The goal is to annotate the dataset. Therefore, the neural net should find all possible ent... |
H: what approach to use for find best customer out of data?
I'm working on this project where the objective is to find certain good leads/customers from the existing customer dataset. I tried the RFM method for scoring but there is no data regarding money or any quantity.
dataset has:
customer_id
date (date when m... |
H: Auto-scheduling with Machine Learning
I am very new to Data Science, but I have an use case which I want to solve.
I want to build a data synchronization scheduler which keeps track of the amount of data sync after every scheduled triggers and auto-adjusts the next schedule.
For example :
Let us suppose I have 3... |
H: Are batch iteration and epochs different in reinforcement learning compared to supervised learning?
I'm following the Udacity "AWS DeepRacer" course about self driving cars with reinforcement learning.
In one lesson, they says this:
Batch size - This determines how many images, randomly sampled from the most recent... |
H: Appending the values of multiple columns into one whilst retaining UIDs
I have a table structured as below:
UID|ColA|ColB|ColC|ColD
I want to restructure so that all columns are combined (appended) into one, retaining the UID of each as below:
UID|ColA
UID|ColB
UID|ColC
UID|ColD
I'm very new to Pandas and was wo... |
H: Feature selection before or after applying filter in Time-series forecasting
I'm predicting ozone concentration based on meteorological variables and ozone value of the previous day. I applied savitzky golay filter to get rid of noise in the time-series dataset.
My question is, if I want to perform feature selectio... |
H: Why should I know C++ ,if I am a machine learning engineer?
I see there's a lot of machine learning job openings with skills requirements, python ,R, keras,tensorflow,pytorch,spark, etc.which are completely fine & reasonable, but why many of the recruiters include C++ ,like what is use of C++ in ML research, or eve... |
H: Why doesn't the binary classification log loss formula make it explicit that natural log is being used?
I'm completing a DataCamp course where we are introduced to the log loss formula for binary classification:
Two scenarios are given to show how the formula is used. One with p=0.1 and one with p=0.5. The answe... |
H: Confusion about Decoder labels for training seq-to-seq models
So in seq-to-seq models for say NMT, the decoder is a sequence model for the right-shifted intended output. My question is, during training, are the inputs and outputs of the decoder supposed to be the desired labels? Or are just the outputs the desired... |
H: Bi-directionality in BERT model
I am reading the paper BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding that can be found here.
It looks to me that the crux of the paper is using masked inputs to achieve bidirectionally.
This is an excerpt from the Google AI blog here which states:
... |
H: Is it feasible to train a single model on 150+ classes?
I have classes for different regions. (Let say 80 classes for 3 regions each).
Will it be ok if I train my CNN model with 240 classes or should I create 3 models for each region? The classes for each region are similar to the classes of other region with same ... |
H: How to predict whether the client will renew the subscription or not based on given data structure
I have a requirement where I want to predict whether the client will renew the subscription or not.
And the data is something like below.
Basically client's subscription end date can be anything. And I want to predic... |
H: Why TREC set two task: document ranking and passage ranking
TREC is https://microsoft.github.io/TREC-2019-Deep-Learning/
I am new to text retrieval. Still can not understand why set the two similar task.
Thank you very much.
AI: The idea behind the two tasks is to explore how document length affects the effectivene... |
H: Understanding the multidimensional-nature of the data being fed to a RNN and its output
Assuming we have a time-series dataset whose window_size = 30 and the batch_size = 4, which makes the overall input = 4*30 (2D). But as RNN expects 3D input, tf.expand_dims is used to make it a 3D input (as per the lecture, new ... |
H: What machine learning algorithm should I use for specific user configuration?
I have a data-set that contains thousands of employee data, including their role, department (Applications Developer, IT Support, Network Management etc.), and using one-hot encoding all of the hardware or software they have been given.
... |
H: Hybrid classification neural network
I have product data and I need to classify products to categories (for example Lenovo laptop to Laptops category, etc.), each product has properties such as:
description
list with image URLs (typically 4 photos)
product-specific properties (watches have a mechanism type attribu... |
H: Select samples from a dataframe in python
I have a data set (pandas dataframe) with a variable that corresponds to the country for each sample. I have to take the samples that corresponds with the countries that appears the most.
thanks
AI: Let's say you have a dataframe df:
import pandas as pd
from faker import Fa... |
H: In elbow curve how to find the point from where the curve starts to rise?
I am computing a distance metric on my data. The result is then being sorted in ascending order.
The samples having distance more than a specific threshold are to be marked as outliers and will be discarded. Below is a plot of all distance va... |
H: How do you integrate nlp into an existing website?
Let's say I have a db driven app which has two tables: people and organizations. I run my documents through a named entity recognition program. Now - what do I do with this additional ner information?
Does it go in my existing db tables?
Do I have to rewrite my ex... |
H: Probability calibration is worsening my model performance
I'm using RandomForest and XGBoost for binary classification, and my task is to predict probabilities for each class. Since tree-based models are bad with outputting usable probabilities, i imported the sklearn.calibration CalibratedClassifierCV, trained RF ... |
H: Splitting training and test set with financial data
I am using trees algorithms (decision tree, random forest and XGBoost) to forecast the sign of the returns in the stock market (classification).
I am using this article as a reference:
http://rpubs.com/raaraa/412512
When splitting the training and the test set, ... |
H: Unbalanced discounted reward in reinforcement learning : is it a problem?
Discounted rewards seems unbalanced to me.
If we take as example an episode with 4 actions, where each action receive a reward of +1 :
+1 -> +1 -> +1 -> +1
The discounted reward for the last action is : 1
The discounted reward for the first... |
H: Light GBM Regressor, L1 & L2 Regularization and Feature Importances
I want to know how L1 & L2 regularization works in Light GBM and how to interpret the feature importances.
Scenario is: I used LGBM Regressor with RandomizedSearchCV (cv=3, iterations=50) on a dataset of 400000 observations & 160 variables. In orde... |
H: How to rotate the plot and find minimum point?
I want to rotate the below curve to 45 degree and then find the minimum point.
For this, I have tried with below code:
def rotate_vector(data, angle):
theta = np.radians(angle)
co = np.cos(theta)
si = np.sin(theta)
rotation_matrix = np.array(((co,-si),... |
H: Unable to interpret this 100% stacked area chart
I suffer from "graphical dyslexia". I have trouble interpreting charts. So I pore over them for long periods of time. For the life of me, I can't figure out how the conclusion from this chart is:
the bottom 80% of men are fighting over the bottom 22% of women and t... |
H: Decision Trees - how does split for categorical features happen?
A decision tree, while performing recursive binary splitting, selects an independent variable (say $X_j$) and a threshold (say $t$) such that the predictor space is split into regions {$X|X_j < t$} and {$X|X_j >= t$}, and which leads to greatest reduc... |
H: Why do we divide the regularization term by the number of examples in regularized logistic regression?
So this is the formula for the regularized logistic regression cost function:
$x^{(i)}$ - the $i$'th training example
$\theta_j$ - the parameter of the $j$'th feature
$m$ - the number of training examples
$n$ - t... |
H: help understanding nested cross validation
From what I read online, nested CV works as follows:
I divide my whole data in k folds, where k-1 folds are the train set and one fold is the test set.
There is the inner CV loop, where we may conduct a grid search using the train set to find the best hyperparameters for ... |
H: What is a color blob? Is it possible to use clustering algorithm to color blob detection problem?
Wiki gives this definition of blob detection
In computer vision, blob detection methods are aimed at detecting regions in a digital image that differ in properties, such as brightness or color, compared to surrounding... |
H: what are effects of working with categorical dataset
I am working on classification problem where the dataset contains 90% of features as categorical. It is binary classification problem, and the class is heavily imbalanced. I performed Smote over sample and created a model. I also tried similar approach with under... |
H: Solving Bayes Theorem equation -> I can't calculate proper result
I am solving questions for an edx course on Machine Learning.
One particular question is giving me a problem:
Assume a patient comes into the doctor’s office to test whether they have a particular disease.
The test is positive 85% of the time when te... |
H: Metrics for unsupervised doc2vec model
I have just built a simple doc2vec model using the gensim library, pretty much followed the tutorial located here.
The methods provided for checking the quality of the model are very manual and require reading the similar docs, is there a way to calculate some other metrics fr... |
H: Best approach for a simple self driving car
I'm planning to build a small car with autonomous driving (maybe modifying my current rc car or using a robot car kit, using arduino and raspberry).
I'll use a CNN, and I'm thinking how to collect data (I want to try a similar approach to the Udacity simulator).
My doubt ... |
H: Regression methods
I want to understand what regression methods exist and their purpose.
I know the least squares method with which you can build a linear and non-linear model and make predictions.
The ARMA model is used to predict stationary time series, and the ARIMA model is used for non-stationary time series.... |
H: some algorithms to identify of a pattern in text data
I have few sentences like below in my project(around 25000),
sentence1 = 'Must be able to multi-task in a fast-paced, deadline-driven environment'
sentence2 = 'Strong organisational skills and proactive approach'
sentence3 = 'in this role you will design devel... |
H: How to execute a git project with different input data?
I would like to run this project and receive result from this project
However I have problem to execute the step
mailcorpus.json created by executing the sql script
data/get_mail_corpus.sql on the Apache database
because this is the sql query
https://git... |
H: ROC curve and optimal threshold
I am doing a practice problem predicting a binary outcome. I have plotted an ROC curve and found the optimal threshold percentage to call future predicted observations a 1. I see that this threshold always matches the percentage of observations equal to 1 in my original data. Is ther... |
H: Why do we determine the values of λ in regularization as ln λ, such as ln λ=-18 instead of for example λ=0.3?
I'm studying Pattern Recognition and Machine Learning by Christopher Bishop. What I realized is, he defines values of λ as ln λ. For example:
We see that, for a value of lnλ = −18, the over-fitting has bee... |
H: Is hyperparameter tuning more affected by the input data, or by the task?
I'm working on optimizing the hyperparameters for several ML models (FFN, CNN, LSTM, BiLSTM, CNN-LSTM) at the moment, and running this alongside another experiment examining which word embeddings are best to use on the task of binary text cla... |
H: multiplying two array in python3.7
I am trying to multiply two array in python 3.7 using numpy by using the following syntax:
array1 = np.array([{1,2,3,4},{5,6,7,8}])
print (array1)
array2=array1*array1
print(array2)
but this error arises
TypeError: unsupported operand type(s) for *: 'set' and 'set'
AI: You... |
H: Using random forest for selecting variables returns the entire dataframe
I am in the process of dimensionality reduction. I am using Random Forest to find the columns with the highest
level of correlation with the target SalePrice column.
The problem is that the output is too large. Definitely not what I want fro... |
H: Decision tree classifier prediction changes from one run of the model to the next
I'm running a very basic gender ['male', 'female'] classifier using the sklearn DecisionTreeClassifier based on [height, weight, shoe size] in a Jupyter notebook.
The prediction changes from male to female for the same input as I kee... |
H: Reinforcement Learning Vs Transfer Learning?
I recently saw a video lecture from Jeremy Howard of fast.ai in which he states that transfer learning is better than reinforcement learning. But I was unable to understand the reasoning behind it.
Can someone explain to me or point to any evidence stating which is bett... |
H: Appropriate model metric for a truncated response variable?
Here's a straightforward question I can't seem to find a good answer to. Let's say you're using some variables to predict age. I'm assuming a regression model is the right approach. In this case, what would be a suitable metric to evaluate the model perfor... |
H: To One-Hot-Encode or not to One-Hot-Encode?
I have been struggling to find proof for that but I couldnt
Every time I prepare dataset I face the same issue
when a column is a classification such as CountryCode or TaskType in this dataset
TaskType CountryCode Target
1 61 Red
1 962 ... |
H: Question of using gradient descent instead of calculus. I checked previous questions there are still points to clarify
First of all I checked http://stats.stackexchange.com/questions/23128/solving-for-regression-parameters-in-closed-form-vs-gradient-descent, http://stackoverflow.com/questions/26804656/why-do-we-use... |
H: Unable to exceute mean of list of lists
I have a list of lists of the following type
a=[[0. , 0.03846154, 0.34615385, 0.34615385, 0.42307692,
0.42307692, 0.53846154, 0.53846154, 0.61538462, 0.61538462,
0.65384615, 0.65384615, 0.73076923, 0.73076923, 0.76923077,
0.76923077, 0.80769231, ... |
H: pandas - under a column, count the total number of a specific value, instead of using value_counts()
value_counts()
function outputs the number of all unique values in a column, for example
apple 3
orange 2
banana 1
I want to search the total number of (value = 'apple') only, which function can replace val... |
H: How to build a hybrid graph with CNN and RNN Architecture?
For an instance, we have M matrix of size n*k, I would like to treat each matrix independently and perform the convolution operation at each one in order to introduce to an LSTM layer the outputs of the convolution layer. can I treat each matrix independent... |
H: can i make model that can take N shape input?
as far as i try all data that model take are fixed size or fixed shape, i had problem that i give data to model but it has no fixed shape and i can not cut part of it as all of it are important,so can i make model that have unshaped data as input then take unshaped data... |
H: Conditional Function in R
I have an R function for (i in 1:10) that reads in data and performs some cleaning. Is it possible to write a flexible statement to execute certain parts of the code conditionally, for example have different steps for i = 2 and 8?
AI: You can add conditions inside the loop if you want:
for... |
H: Clustering analysis for observations with lists as data
So I have several samples analyzed for their chemical composition. After data analysis, for each sample, I have a list of compounds found and their corresponding relative abundance. Some compounds are unique but most are actually found in most samples.
I want ... |
H: Which are the appropriate prameters for lda modeling?
I try to implement in R test for appropriate metrics for lda.
Here the way I try to use LDA
require(quanteda)
require(quanteda.corpora)
require(lubridate)
require(topicmodels)
dtext <- data.frame(id = c(1,2,3), text = c("This dataset contains movie r... |
H: Feature addition/ subtraction and SVM model accuracy
I am working on a text classification problem where I would like to improve the accuracy of my model. Presently, I am using SVM with linear SVC and OneVsRestClassifier. The model should correctly predict all of the subcategories for a parent category.
For entered... |
H: How to normalize a position in 3d game?
I'm pretty new to anything and everything related to this kind of stuff, I was wondering how would I normalize the coordinates of a entity in my game for a nerual network? Would it just be the same normalizng everything else? I don't assume it'd be the same just because how b... |
H: Is there any way to define custom entities in Spacy
1) I have just started working on NLP the basic Idea is to extract meaningful information from text. For this I am using "Spacy".
As far as I have studied Spacy has following entities.
ORG
PERSON
DATE
MONEY
CARDINAL
etc. But I want to add custom entities like:
N... |
H: Should I perform cross validation only on the training set?
I am working with a dataset that I downloaded from Kaggle. The data set is already divided into two CSVs for Train and Test.
I built a model using the training set because I imported the train CSV into a Jupyter Notebook. I predicted using the Train CSV it... |
H: Decision Trees Should We Discard Low Importance Features?
I just started to work with feature selection. Let's say I have a decision tree model. I get its feature importances by tree.feature_importances_.
In my model out of around 30 features, 20 of them has importance value of zero. Does that mean that I should di... |
H: Docker for data science
I recently started to read articles about Docker.
To me, in data science, Docker is useful because:
1) You have a totally different environment, which protect you against libraries and dependencies problems.
2) If your application modify, for example, the database of your company, you want f... |
H: Gradient boosting how can accuracy increase when we lower the depth of tree?
What I don't understand about gradient boost is, doesn't lowering height of the tree means we use fewer features in our model?
From my model I get the highest accuracy when the depth is one. Meaning there is just root node at my trees, and... |
H: Transfer learning on new image size
Transfer learning: Take a trained neural network and use it for a new classification task.
When we want to use transfer learning with a convolutional neural network, we don't have to use the same image size as input than the image size used for training. But if we change the inpu... |
H: Make column as dictionary key and row as value in pandas dataframe
I have Dataframe as below.
name value id
A 123 1
B 345 5
C 567 4
D 789 2
I need to create a dictionary of the form below
{
{"name":"A",
"value":123,
"id":1
},
{"name":"B",
... |
H: Explain forward filling and backward filling (data filling)
Can I understand in this way? Let me know if any statement is wrong or not accurate.
Reason of data filling:
Assume I have a consecutive data (e.g., daily log data), and partial data are missing. In order to make some calculation (e.g., mean value), we fi... |
H: How can I have the same initialization for all my networks?
I want to have the same weights for layer initializations in all my networks, so that when I'm comparing their first epoch loss they all start from the same value. Is there a way in keras to do this?
I have set the random seed for the numpy and tensorflow... |
H: How to convert trained data (feature extracted) into a prediction model?
Background:
I am analyzing and labeling some log data. (parsed already, sample data below)
I have extracted the major features of data.
For examples, the classification results ("1 - normal" or "0 - anomaly") largely depends on columns "durat... |
H: Is DQN limited to working with only image frames?
I have few questions about Deep Q Network.
Does DQN only accept image frames as input? I have never hear (read) a paperwork where it doesn't use image frames.
If the first is a No, then does image frames as input for training faster than any other options? For exam... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.