data-science Questions

1

Solved

Is new macbook m1 suitable for Data Science? Do Data Science python libraries such as pandas, numpy, sklearn etc work on the macbook m1 (Apple Silicon) chip and how fast compared to the previ...
Lanni asked 1/12, 2020 at 17:39

1

I use LightGBM model (version 2.2.1). It shows next warning on train: [LightGBM] [Warning] Starting from the 2.1.2 version, default value for the "boost_from_average" parameter in "binary" obje...
Infrastructure asked 3/4, 2019 at 15:57

1

How can I enable HTTPS for a DASH aplication running on a webserver with Python? I already have a SSL certificate (.key and .crt)
Pallaton asked 15/11, 2020 at 0:9

2

Solved

I've created a simple linear regression model to predict S&P 500 closing prices. then calculated the Mean Absolute Error (MAE) and got an MAE score of 1290. Now, I don't want to know if this is...
Desdee asked 29/10, 2016 at 20:31

3

Solved

I trained a model in keras (regression) on a Linux platform and saved the model with a model.save_weights("kwhFinal.h5") And then I was hoping to take my complete saved model to Python 3.6 on my W...
Stanford asked 7/3, 2019 at 17:1

1

Solved

I want to convert images to tensor using torchvision.transforms.ToTensor(). After processing, I printed the image but the image was not right. Here is my code: trans = transforms.Compose([ transfo...
Nesbitt asked 1/11, 2020 at 7:45

4

Solved

I'm trying to create a 4x4 FacetGrid in seaborn for 4 boxplots, each of which is split into 3 boxplots based on the iris species in the iris dataset. Currently, my code looks like this: sns.set(st...
Marker asked 24/9, 2018 at 4:34

2

Solved

I would like to know if there is an implementation of hierarchical classification in the scikit-learn package or in any other python package. Thank you so much in advance.
Jose asked 19/6, 2017 at 2:26

2

Solved

I am learning Python for data science, but my problem is that I still don't understand the difference between Spyder and Jupyter! I would like you guys to help me to understand the difference, plea...
Chiclayo asked 19/11, 2018 at 4:18

6

Solved

Question In this datafile, the United States is broken up into four regions using the "REGION" column. Create a query that finds the counties that belong to regions 1 or 2, whose name starts wit...
Incorruptible asked 14/2, 2017 at 13:29

5

Load the energy data from the file Energy Indicators.xls, which is a list of indicators of energy supply and renewable electricity production from the United Nations for the year 2013, and should b...
Protectionism asked 4/2, 2017 at 1:51

2

Solved

I need to create a function which would be the inverse of the np.gradient function. Where the Vx,Vy arrays (Velocity component vectors) are the input and the output would be an array of anti-deriva...
Crestfallen asked 2/8, 2020 at 20:18

3

I need to know whether coherence score of 0.4 is good or bad? I use LDA as topic modelling algorithm. What is the average coherence score in this context?
Fudge asked 19/2, 2019 at 9:23

2

Solved

I need to have a MAPE function, however I was not able to find it in standard packages ... Below, my implementation of this function. def mape(actual, predict): tmp, n = 0.0, 0 for i in range(0...
Huoh asked 15/2, 2017 at 13:38

2

I would like to use Google Colab to accelerate the process of calculation of my deep learning model. However, I cannot run the model directly from the .ipynb file in the Google Colaboratory, since ...

2

Solved

I'm plotting the missions ran by the USAF on North Korea during the Korean War. The following is the map with 2800 plots. I have a total of about 7500 plots, but whenever I try to plot above 28...
Pentastyle asked 23/4, 2018 at 15:21

3

Solved

I am working on the titanic kaggle competition, to deal with categorical data I’ve splited the data into 2 sets: one for numerical variables and the other for categorical variables. After working w...
Jetton asked 18/5, 2018 at 15:35

3

I get the following error when I train LightGBM model: # Train the model import lightgbm as lgb lgb_train = lgb.Dataset(x_train, y_train) lgb_val = lgb.Dataset(x_test, y_test) parameters = { 'app...
Cuomo asked 3/2, 2019 at 20:30

5

I'm not sure what this error means. This error occurs when I try to calculate acc: acc = accuracy.eval(feed_dict = {x: batch_images, y: batch_labels, keep_prob: 1.0}) I've tried looking up solut...

2

I'm looking for an efficient quantiles algorithm that allows sample values to be "upserted" or replaced as the value changes over time. Let's say I have values for items 1-n. I'd like to ...
Brynnbrynna asked 23/6, 2020 at 1:33

2

Main issue: Why coefficients of Lasso regression are not shrunk to zero with minimization done by scipy.minimize? I am trying to create Lasso model, using scipy.minimize. However, it is working onl...

2

Solved

I have run a KNN model. Now i want to plot the residual vs predicted value plot. Every example from different websites shows that i have to first run a linear regression model. But i couldn't under...
Favouritism asked 1/7, 2020 at 16:34

1

I tried to compare the two, one is pandas.unique() and another one is numpy.unique(), and I found out that the latter actually surpass the first one. I am not sure whether the excellency is linear ...
Minton asked 14/11, 2018 at 23:57

2

I have a dataframe called "dataframe" that contains a bunch of information of sales on a certain date. Each date entry is in the format of YYYY-MM-DD, and data ranges from 2012 to 2017. I would lik...
Wexford asked 27/6, 2018 at 23:58

1

Solved

How do these function works? I am using Python3.7 and OpenCv 4.2.0. Thanks in Advance. approx = cv2.approxPolyDP(cnt, 0.01*cv2.arcLength(cnt, True), True)

© 2022 - 2024 — McMap. All rights reserved.