I read some stuff about majority vote and greedy action in ensembling, however, they kind of sound similar, but also different. What is the real difference between those two? Thanks for your help!
I’m trying to build a regression model that estimates the amount of sales of a beer product on a given day based on the prices of the product and competitors, the weather, the season and the day of week of that specific day My question is how to split the data into train and test Because I pretend to use the model to make a prediction for a future day, I think I could split the data so that the …
I have some posts that were permanently deleted, however, instead of wordpress returning the 404.php page template, it is returning the index.php template. In other posts, the behavior is right, but in some like this it is not What I've done so far: theme change to twenty-two I updated the permalink structure I cleaned the database with the advanced database cleaner plugin. There is no cache However, nothing resolved. You can see below the template shown and the correct status …
I'm new to WordPress. I installed a new theme and there was no content on the page, then I imported demo data, my database got populated with a bunch of content and there are now many different sections added on the homepage (for example this: https://i.imgur.com/2wmuJJZ.png) I don't understand how can I delete this content and add my own? I tried deleting almost all .php files from /themes/my_theme and wp_posts from the database but this content didn't change. If I …
noob in data science here. I would like some advice on the following: I have a series of events that can happen at random times of a day, there is the event start/end time. If an event started already the same kind of event can’t start until it finishes but other types of events can happen at the same time simultaneously. It’s like events for a few different people in the same calendar. There is also some probability X for …
I'm building out a custom shop template and I'm trying to achieve something like this. Where the user can choose the product variation in the dropdown, choose quantity, and click add to cart without redirecting using AJAX. This got me close to what I was trying to achieve, but I can figure out how to add the quantity option, and it would also redirect to the product page after adding to cart. I appreciate any help! <?php /** * Replace …
I need to construct an interactive clustering plot. Ideally as the user zooms in the clusters would split-up into smaller clusters at certain zoom levels. I am planning to have several discrete levels of clustering, and the plot would visualise each depending on the zoom-level the user is at. I'm not that sure how to approach this. Are there any python packages that can help? Any advice appreciated.
I have a custom content type, "products", which shares the category taxonomy with posts. We're using posts to discuss and review products. The idea is to have two separate URLs: /discussion/category/term/ : Displays a listing of posts belonging to a specific term with a "related products" area pulling from the same term /products/category/term/ : Displays a listing of products belonging to that term with a "related discussions" area pulling from the same term I can use the default category/archive templates …
I'm trying to use the "Embed URL" block to include another WP site's tag page on my WP page. It seems like I'm able to embed individual posts from that site (so the theme supports embedding) but I get the error "Sorry, this content could not be embedded." when I try to use the tag page url. Is it possible to embed a tag page?
I researched in google, yandex but had no success. With this code I can set a div to sub-menu but this code add to all sub-menus, I just need to add div to specific sub-menu. class Megratron_div extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div id='megatron'><ul class='sub-menu'>\n"; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div>\n"; } …
I am trying to create a bar plot for a Pandas Series and the bar plot is not showing up in Jupyter notebook. When I run the cell, I only get the following and I do not see the bar plot. <matplotlib.figure.Figure at 0x7fa555abc080> Please advise.
I have event website. I want send reminder about event exactly 2 hours before the event to subscribers. So how can schedule wordpress to call the function exactly at time. I know about wp_schedule and cron. But that doesn't helps me. Don't recommend plugins. Because I am developing custom plugin. So what is the correct way to do that. Example: if event start time is today 11:30 pm , I want to remind the event subscribers at exactly 9:30 pm.
I'm doing a project which involves a small dataset (4GB). I'm trying to upload it to Paperspace to do some analysis but it's taking an absurd amount of time. Using Gradient, it would upload maybe 40MB in 10min then stop uploading. This was done using the "upload" button in the jupyter notebook. Using a P400 hourly computer I'm transferring at 800MBPS over SSH (well, through Nautilus), but it's still taking hours to transfer this small dataset. What am I doing …
I want to restrict authors to a specific Category to write in. A plugin that is suggested on many blogs is restrict-author-posting. Unfortunately, this is no longer maintained and was removed from the plugin store. The only suitable but not a free plugin I found was PublishPress Pro. I really don't want to pay for that functionality. An additional plus would be, that some editors can only publish in a certain category as well. I am willed to write/edit some …
I have a question about the loss function and the gradient. So I'm following the fastai (https://github.com/fastai/fastbook) course and at the end of 4th chapter, I got myself wondering. From what function do come the gradients that I use to adjust weights? I do understand that loss function is being derivated. But which? Can I see it? Or is it under the hood of PyTorch? Code of the step function: def step(self): self.w.data -= self.w.grad.data * self.lr self.b.data -= self.b.grad.data …
I am currently trying to figure out whether my data (consisting of thousands of rows, some is numerical, and some are categorical, and some are ordinal) has multicollinearities or not. One thing I have noticed is that my data is not normally distributed, based on the Shapiro-Wilk test. As is the case with mostly (if not all) real world data, as answered here But based on several posts, including this one, many suggests the ANOVA (Categorical vs Numerical) or the …
I have a template where I must use the do_blocks function. It works fine in the HTML sense, but it seems to just not load the CSS related to the block. Is there a way to force it to load the CSS of the blocks you call with do_blocks?
I am getting a 503 service unavailable error only on my wp-admin page and not my main site and I cannot figure out what has gone wrong! Steps I've taken to try to fix it are: disabled all plugins changed theme by both deleting from filesystem and through DB rolled back to a backup from a month ago when the wp-admin page was definitely working there is no custom code on the site called my web hoster and we have …
im trying to add a dropdown menu on my tkinter popup window but when ever i run it on my visual studio code ide nothing displays but when i run the code by it self on jupyter everything work fine so what is going on def btn4(): newWindow4 = Toplevel(root) newWindow4.title("GOES NOAA V1.0 ") newWindow4.geometry("1620x1300") fig = plt.figure(figsize=(6, 6)) canvas = FigureCanvasTkAgg(fig, master=newWindow4) canvas.get_tk_widget().pack(side=tkinter.TOP, fill=tkinter.BOTH, expand=1) channel_list = {u'1 - Blue Band 0.47 \u03BCm': 1, u'2 - Red Band 0.64 …
I am reading a paper that mentions the following. "Recent developments have been mainly around preprocessing techniques such as deseasonalization and detrending to supplement the NN's learning process,...." How do the above mentioned preprocessing methods help to learn the ML-model when it seems counter-intuitive to me?
I have a huge amount of documents and every document has its own portrait, where a portrait has this structure (document_id, word, weight). TFIDF, basically. I want to cluster these documents into different clusters, say, 10. I'm trying to implement the K-Means algorithm with sklearn, but I have almost zero experience with data science whatsoever. All tutorials that I found get texts as input from Wikipedia or somewhere else, but I don't have access to the texts themselves. I have …
Lets assume that we have a post which belongs to 2 or more categories and we wish to display, on the post page, the selected category through which we reached to the post page. What is the best method? Keep the category id in a session or in a querystring temporarily? Or any other? THX
I have been reading about evaluating a model with accuracy only and I have found some disadvantages. Among them, I read that it equates all errors. How could this problem be solved? Maybe assigning costs to each type of failure? Thank you very much for your help.
I'm using the captum library to calculate LayerGradCam. layer_gc = LayerGradCam(model, model.layer4) attr = layer_gc.attribute(x, class_idx, relu_attributions=True) Some values in attr have values greater than 1. Is this supposed to be the case? If it is, then is it valid to minmax normalize the attributions in a batch? I'm using these attributions to calculate Dice loss using pixel maps where the max value is 1. So when the attributions are greater than 1, Dice loss becomes negative, which is not …
I have a highly imbalanced dataset (± 5% positive instances), for which I am training binary classifiers. I am using nested 5-fold cross-validation with grid search for hyperparameter tuning. I want to avoid undersampling, so I have been looking into the class_weight hyperparameter. For sklearn's decisiontree classifier, this works really well and is easily given as a hyperparameter. However, this is not an option for sklearn's neural network (multi-layer perceptron) as far as I can tell. I have been using …
I'm running WP 4.7.4. The site is a default site with no plugins activated other than the default plugins. I'm using the WordPress::XMLRPC Perl module to generate a getPost XMLRPC call for post #1 like so: my $obj = WordPress::XMLRPC->new({username => 'admin', password => 'xxxxxx', proxy => 'http://my.domain.com/'}); my $post = $obj->getPost(1); The full error is this: not well-formed (invalid token) at line 15, column 51, byte 720 at /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/XML/Parser.pm line 187. <!DOCTYPE html> <html lang="en-US" class="no-js"> <head> <...snip...> </body> …
I have a dataframe with multiple time series and columns with labels. My goal is to plot all time series in a single plot, where the labels should be used in the legend of the plot. The important point is that the x-data of the time series do not match each other, only their ranges roughly do. See this example: import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame([[1, 2, "A", "A"], [2, 3, "A", "A"], [3, 1, …
I am using wordpress 4.2.2 and i am using buddypress latest version. I want all my users customize their profile at buddypress profile page. So i want to disable profile.php for the users. I hide the profile link from dashboard by the WP admin UI customize plugin.But when anyone type url mysite/wp-admin/profile.php it's appear on browser.So i want to escape from the problem and want to disable profile.php for the users. What should i do to do this?
I'm looking for NLP datasets/corpora with small vocabulary sizes -- less than 5K unique words, but smaller still is better. I've tried looking for e.g. datasets of children's books but I've not found anything that has a decent length of corpus while also having a small vocabulary size (e.g. any children's book with very small vocabulary sizes also tends to be very short!) If anyone can share anything fitting this description I'd be really interested to hear.
I have doubts about the differences between these three methods and I would like to clarify the following: Main differences Advantages of one over the other Context of use of each method etc... If anyone could help me, I would appreciate it.
I have a log-normal mean and a standard deviation. after i converted them to the underlying normal distribution's parameters mu and sigma, I sampled from the log-normal distribution however when i take the mean and standard deviation of this sampled data i don't get the results i plugged in at first. This only happens when the log-normal mean is way smaller than the log-normal standard deviation otherwise it works. how do i prevent this from happening and get the input …
I have logs of the form (e.g. from a gym login).. the representational case is so: UserName, Login time, timeSpend_on_weights, time_spent_on_elliptical Ava, 5jan 12pm, 10 mins, 20 mins, Bob, 5jan 2pm, 30 min, 20 mins, Cecila, 6jan 10am, 40min, 0 mins ... Now I've converted the above time column to HourOfDay and day of month to get: UserName, DOM, HOD, #weights, #elliptical Ava, 5, 12, 10, 20 Bob, 5, 14, 30, 20 Cecilia, 6, 10, 40, 0 .. I treat …
I would like to run an add_action in functions.php only if the theme is being loaded from my localhost development site. How would I get this to run only on localhost? function livereload(){ ?> // mycode <?php } add_action('headway_body_close', 'livereload');
I'm having a hard time using this snippet I'm getting double views each time the post is queried. This is in my functions.php file: function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); return "0"; } return $count; } function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } // Remove issues with prefetching adding extra …
I have set up Wordpress with a multisite network. I have been searching around for hours and can't seem to find much documentation on setting custom defaults for all the new sites that are created on the network. I am using a theme with a child theme installed. Firstly I would like the default theme for all new sites created on the network to be my child-theme that is installed and Every new site starts with a basic default static …
In Haykins Neural Network a comprehensive foundation, the piecwise-linear funtion is one of the described activation functions. It is described with: The corresponding shown plot is I don't really understand how this is corrected since the values shown in the graph in the area of -0.5 < v < 0.5 is not v but v+0.5. Am I understanding something wrong, or is there a mistake?