I'm calling wp_nav_menu programmatically on a class and I'd like to be able to set the field that will be shown as the current-menu-item but I don't see an argument for that. It seems like I may be able to use nav_menu_css_class?
Suppose we have a dataset of two classes (0 and 1) divided into over 12k mini-batches where the first half of the dataset (over 6k mini-batches) belong to class 0, and the other half belongs to class 1. What will happen if a model is trained on this dataset without shuffling the samples?
I have been using a J48 classifier in weka and have noticed that increasing minNumObj -- The minimum number of instances per leaf leads to a small accuracy increase. -M Result. Size Num Leaves 2 73.8281 % 39 20 3 74.2188 % 39 20 4 74.4792 % 37 19 5 74.6094 % 25 13 6 74.2188 % 23 12 7 74.2188 % 23 12 8 74.349 % 23 12 9 75.2604 % 29 15 10 75.5208 % 29 15 11 …
I extracted images of human faces from the videos, but the model also recorded images without faces. I wrote CNN for emotion classification. In the obvious pictures, the probability is closer to a probability in the softmax function in the last layer, for example, in a photo that is certain to be happy, a probability of 0.95 for the happy class appears, but if there is no face in the picture, it disperses between classes such as 0.3 and 0.2. …
I want to add custom css to my gutenberg table block. I want to adjust the css width of the tds. Ive tried selected the "Fixed Width table cells" toggle but the table seems to have different widths. Is there a way to do that because all of the plugins I have used dont seem to work. I tried adjusting the css in the theme.css and style.css files in css/dist/block-library folder. Do I need to compile it and that is …
I'm trying to understand how to plot SVM hyperplane and its margins by this example: https://scikit-learn.org/stable/auto_examples/svm/plot_svm_margin.html And I got stuck at the plotting the parallels part: # plot the parallels to the separating hyperplane that pass through the # support vectors (margin away from hyperplane in direction # perpendicular to hyperplane). This is sqrt(1+a^2) away vertically in # 2-d. margin = 1 / np.sqrt(np.sum(clf.coef_ ** 2)) yy_down = yy - np.sqrt(1 + a ** 2) * margin yy_up = yy …
We work on multi site which one working well on local. But i have make site on live server then some pages content not display on wysiwyg editor backend but display on front side. This issue arrived when content in special character. we have use Version 4.2.4 How to fix this one this is wp bug ?
I cannot load admin-ajax.php and I keep getting this error message: XMLHttpRequest cannot load ..../wp-admin/admin-ajax.php.,. No 'Access-Control-Allow-Origin' header is present on... On local WAMP it worked just to add this: header("Access-Control-Allow-Origin: *"); (Even if this seems very stupid because next time WordPress updates I guess this would disappear.) When I upload this to my production server it's still the same message: XMLHttpRequest cannot load ..../wp-admin/admin-ajax.php.,. No 'Access-Control-Allow-Origin' header is present on... I've tried to modify the .htaccess file and that …
I am new to machine learning. I have 10,000 examples of 128x256 array of values 0.0-1.0. Each example consists of a pair of a clean example and the other with noise added. I am aiming to train a CNN / (or an autoencoder?) with these examples. I am currently able to train one dense layer without errors. My first problem is my prediction is returning a 128x256 int array rather than floats. My larger question is about finding a starting …
I am new to decision tree method. For decision tree regression model, does it just fit a piece wise step function over data? When and why would people prefer it over some traditional regression like locally weighted (LOESS) regression?
I have a subdomain multisite installation in site.com, with subsites such as sub1.site.com, sub2.site.com etc. I needed to transfer one of these sites to an own domain, sub1.com. So I changed the domain value from sub1.site.com to sub1.com on the network admin panel and at first it seemed to be working. However, I was not able to log in to the admin panel on the transferred site at sub1.com/wp-login.php. No error messages, but returned on the same page every time. …
I am dealing with a timeseries consisting of input flow sampled every 5 minutes over 441 days. My aim is to find any possible correlation from data coming from: The same day of the week The same moment in time I proceeded to sample according to weekdays and hours. Then I computed the 63x63 correlation matrix for each of the weekdays and a 441x441 for each hour, which in the second case is pretty impractical. I feel like this way …
I have a pre-trained ASR model but want to add some missing words to the vocabulary. Can I do this or will it invalidate the entire training? Lets say I use the pretrained model: wav2vec2-base-960h and want to use it on sports commentary but a lot of the players' names are missing in the vocabulary. Is there any way I can add the names and maybe train on a few clips where the names appear or do I have to …
In NLP, people tend to use cosine similarity to measure document/text distances. I want to hear what do people think of the following two scenarios, which to pick, cosine similarity or Euclidean? Overview of the task set: The task is to compute context similarities of multi-word expressions. For example, suppose we were given an MWE of put up, context refers to the words on the left side of put up and as well as the words on the right side …
custom bread crumb not working with multiple categories assigned to a single product, we do not have the categories page, so don't want to show categories in the URL, but need to show the categories navigation on the breadcrumb . <?php function bootstrap_breadcrumb($custom_home_icon = false, $custom_post_types = false) { wp_reset_query(); global $post; $is_custom_post = $custom_post_types ? is_singular($custom_post_types) : false; $post_type = get_post_type(get_the_ID()); if (!is_front_page() && !is_home()) { echo '<ol class="d-flex breadcrumb-wrapper">'; echo '<li><a href="'; echo get_option('home'); echo '">'; if ($custom_home_icon) …
In Google WebMaster Tools the crawling errors page is showing 177 missing urls. Most of them are showing as ?attachment_id=xxx I have looked in the database for these id's in the wp_posts table but they do not exist. I have marked these errors in Google Webmaster Tools as fixed, but they keep coming back. Where else should I look at ? There must be a reference somewhere to these urls, but I can't find it.
I'm doing some Bayesian A/B testing and I need to work out an appropriate sample size in order to detect an effect. Unfortunately, there doesn't really seem to be much information about this out there (that I can find, at least). Let's say I'm measuring a continuous metric, which is currently at a value of 100 in the control group. How would I work out the sample size I'd need to detect a minimum effect of a raise to 102 …
I have monthly snapshots (3 years) of all the contract data. It includes following information: Contract status [Categorical]: Proposed, tracked, submitted, won, lost, etc Contract stages [Categorical]: Prospecting, engaged, tracking, submitted, etc. Duration of contract [Date/Time] : months and years Bid Start date [Date/Time]: Date (But this changes when the contracts are delayed) Contract value [Numerical] : Value of the contract in local currency Future revenue projection [Numerical]: Currency value breakdown of revenue for next 5 years (this value is …
I'm fairly new to Wordpress REST API, but I have an Angular application which needs to take user's input and then create a comment anonymously. To start off, we can get rid of the rest_comment_login_required error message by modifying the Wordpress REST API function located in wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php file. The following line allows anonymous commenting: $allow_anonymous = apply_filters( 'rest_allow_anonymous_comments', true, $request ); In my Wordpress REST API, sending a GET request to http://localhost/wordpress/wp-json/wp/v2/users/1 returns: { "id": 1, "name": "root", "url": "http://localhost/wordpress", …
How to know whether machine learning is possible for a given data set. I have been given a data set, I should check whether machine learning is possible or not for that data set. How can I do that. How do you come to conclusion that machine learning can be performed for the given data set or not.
I'm reading a recent published paper, but it lacks reproducible architecture diagram. So I'm trying to make sense of the implementation described below: Our multi-task network has an encoder-decoder structure based on ResNet-18. The decoder is composed of four deconvolution layers to output the final feature map which has 1/4 resolution of the input image. Similar to U-Net, we add skip connections between encoder and decoder to fuse the features at different scales. Additionally, dilated convolution and Non-Local block are …
I have created menus (Appearance ---> Menu) and they are not showing up on my website. I am running the Kingdom Theme. Please help and keep in mind i am new to this. Thanks in advance!
I was wondering if there's a good way to use ensembling when I have two or more algoritims producing ranked lists. That is, suppose I have the following datasets consisting of ordered lists (higher to the top means more relevant): Method1_Rankings Method2_Rankings GoldStandard_Rankings item1 item2 item1 item3 item1 item3 item2 item10 item5 ... Is there a way to optimally combine methods 1 and 2 (e.g., give the rankings some weights or similar)? Thank you.
I have to write my Master's thesis on this topic (I'm in Natural Language Processing) and while I sometimes see these terms used interchangeably other sources seem to emphasize the fact that there are distinctions between them without explaining in what they differ.
I am doing image classification and I have a training set and a test set with different distributions. So to try to overcome this problem I am using an Image generator in the following way: trainingset = '/content/drive/My Drive/Colab Notebooks/Train' testset = '/content/drive/My Drive/Colab Notebooks/Test' batch_size = 32 train_datagen = ImageDataGenerator( featurewise_center=True, featurewise_std_normalization=True, rescale = 1. / 255,\ zoom_range=0.1,\ rotation_range=10,\ width_shift_range=0.1,\ height_shift_range=0.1,\ horizontal_flip=True,\ vertical_flip=False) train_generator = train_datagen.flow_from_directory( directory=trainingset, target_size=(256, 256), color_mode="rgb", batch_size=batch_size, class_mode="categorical", shuffle=True ) test_datagen = ImageDataGenerator( featurewise_center=True, featurewise_std_normalization=True, …
How can I perform conceptual clustering in sklearn? My use case is that I have English Wikipedia articles that I'm doing unsupervised learning on (tfidf -> truncated svd -> l2 normalize), and I'd like to create a hierarchy for them such that the nodes at the top are the most general articles (e.g. Programming Languages -> Functional Languages -> Haskell). I tried using hierarchy.linkage, but it seems that the algorithm uses n^2 space, and I ran out of memory. I …
i'm working on Arabic Speech Recognition using Wav2Vec XLSR model. While fine-tuning the model it gives the error shown in the picture below. i can't understand what's the problem with librosa it's already installed !!!
I'm trying to use unzip_file to extract the remote archive with no success. It works only with the local path using get_template_directory() but with a remote zip archive URL I'm getting Incompatible Archive. message. Here is the stripped version of my code: WP_Filesystem(); global $wp_filesystem; $source = 'http://downloads.wordpress.org/theme/ona-creative.1.0.0.zip'; $unzipfile = unzip_file( $source, get_theme_root() ); if ( is_wp_error( $unzipfile ) ) { wp_send_json( array( 'done' => 1, 'message' => esc_html__( $unzipfile->get_error_message() . ' There was an error unzipping the file.', 'ona' …
I tried to use OMP algorithm available in scikit-learn. My net datasize which includes both target signal and dictionary ~ 1G. However when I ran the code, it exited with mem-error. The machine has 16G RAM, so I don't think this should have happened. I tried with some logging where the error came and found that the data got loaded completely into numpy arrays. And it was the algorithm itself that caused the error. Can someone help me with this …
The title basically says it all. I'm piecing through publishing my first theme and have copied the woocommerce template files right from the plugin. So they should be identical with no current changes. However, when I add theme support in functions.php I no longer have products displayed. The declaration is basically right from their github: function bad_billy_beards_add_woocommerce_support() { add_theme_support( 'woocommerce', array( 'thumbnail_image_width' => 150, 'single_image_width' => 300, 'product_grid' => array( 'default_rows' => 3, 'min_rows' => 2, 'max_rows' => 8, 'default_columns' …
Which tools are available to extract features from a graph. After that, I would like to perform regressions on those features. Initially, I was thinking about using the adjacency matrix of the graph. But maybe there is a smarter way of doing feature extraction on graphs.
I was wondering if there is any other way to write my own Keras layer instead of inheritance way as given in their documentation? My colleague is more comfortable in tensorflow and he gave me a tensorflow function that does the job of the layer. Do I necessarily have to rewrite it as Keras' inherited layer?
I am doing a feature selection for a data science project with one of those feature being a high cardinality categorical variable (for context, it’s nationality). I know chi-square test could handle multiclass feature like mine but I need to do one-hot encode (dividing a multiclass variable into multiple binary variable based on its values) to be able to input it into my machine learning algorithm (spark mllib). My question is does doing one-hot encode effects the result of a …
Perhaps I am misunderstanding (likely) but I am trying to use TwentySixteens method to try and make the images I upload through WordPress responsive. I have only barely modified the code, but no matter what I try the images do not resize. Here's what I added to my functions.php: function b2f_post_thumbnail_sizes( $attr, $attachment, $size ) { if( 'post-thumbnail' === $size ) { $attr['sizes'] = '(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 88vw, 1200px'; } return $attr; } add_filter( 'wp_get_attachment_image_attributes', …
Before marking my question as duplicate, I would like to say that I have tried all the possible solutions mentioned in similar questions, but that doesn't seem to work. I am currently working on blood cells classification problem where we basically have to classify blood images (4 classes). The dataset consists of 9957 images, nearly equal number of images of all the 4 classes. The accuracy always hovers around 25-27% even after trying different optimizers and learning rates. I even …
We are running Orange with our students and most of them are having problems with running the Geo Map widget. It does not show any background map. In the bottom an error message is displayed: "Cannot fetch map from the Internet. Displaying only cached parts." I have found this Github page, but it does not explain how to update or add any JSON files that might be missing: https://github.com/biolab/orange3-geo/blob/master/CONTRIBUTING.md What do we have to do to get the background maps …