Reduce spacing between chapter and head of page
Space before chapters and contents
I am working to integrate unit testing into the development process on the team I work on and there are some sceptics. What are some good ways to convince the sceptical developers on the team of the value of Unit Testing? In my specific case we would be adding Unit Tests as we add functionality or fixed bugs. Unfortunately our code base does not lend itself to easy testing. In theory, is it possible that the loss on the train set will increase together with the train set accuracy? (in the normal case the train set loss should go down) And vice versa, can the train loss decrease along with the accuracy?   Note: This is obviously different than the classic underfit / overfit cases which are easier to grasp. How to count the number of occurrences of an element in a List I have an ArrayList, a Collection class of Java, as follows:  ArrayList&lt;String&gt; animals = new ArrayList&lt;String&gt;(); animals.add("bat"); animals.add("owl"); animals.add("bat"); animals.add("bat");   As you can see, the animals ArrayList consists of 3 bat elements and one owl element. I was wondering if there is any API in the Collection framework that returns the number of bat occurrences or if there is another way to determine the number of occurrences.  I found that Google's Collection Multiset does have an API that returns the total number of occurrences of an element. But that is compatible only with JDK 1.5. Our product is currently in JDK 1.6, so I cannot use it. I am working on SharePoint 2010, I have a custom list with columns Start date , End date, Created by, Approval Status. I have created a page where I am looking to filter the list and show the result depending on the approval status which is a column in custom list as shown in figure . Can some one help me out on how to approach for this. I'm trying to find the birth certificate of my wife's great grandmother who was probably born in Durban, South Africa in 1884. I'm currently unable to find any online resources for this.  If such a thing does not exist online, is there any other method of retrieving a copy or at least just the details? How to plot logistic regression decision boundary? I am running logistic regression on a small dataset which looks like this:    After implementing gradient descent and the cost function, I am getting a 100% accuracy in the prediction stage, However I want to be sure that everything is in order so I am trying to plot the decision boundary line which separates the two datasets.  Below I present plots showing the cost function and theta parameters. As can be seen, currently I am printing the decision boundary line incorrectly.    Extracting data  clear all; close all; clc;  alpha = 0.01; num_iters = 1000;  %% Plotting data x1 = linspace(0,3,50); mqtrue = 5; cqtrue = 30; dat1 = mqtrue*x1+5*randn(1,50);  x2 = linspace(7,10,50); dat2 = mqtrue*x2 + (cqtrue + 5*randn(1,50));  x = [x1 x2]'; % X  subplot(2,2,1); dat = [dat1 dat2]'; % Y  scatter(x1, dat1); hold on; scatter(x2, dat2, '*'); hold on; classdata = (dat&gt;40);   Computing Cost, Gradient and plotting  %  Setup the data matrix appropriately, and add ones for the intercept term [m, n] = size(x);  % Add intercept term to x and X_test x = [ones(m, 1) x];  % Initialize fitting parameters theta = zeros(n + 1, 1); %initial_theta = [0.2; 0.2];  J_history = zeros(num_iters, 1);   plot_x = [min(x(:,2))-2,  max(x(:,2))+2]  for iter = 1:num_iters  % Compute and display initial cost and gradient     [cost, grad] = logistic_costFunction(theta, x, classdata);     theta = theta - alpha * grad;     J_history(iter) = cost;      fprintf('Iteration #%d - Cost = %d... \r\n',iter, cost);       subplot(2,2,2);     hold on; grid on;     plot(iter, J_history(iter), '.r');  title(sprintf('Plot of cost against number of iterations. Cost is %g',J_history(iter)));     xlabel('Iterations')     ylabel('MSE')     drawnow      subplot(2,2,3);     grid on;     plot3(theta(1), theta(2), J_history(iter),'o')     title(sprintf('Tita0 = %g, Tita1=%g', theta(1), theta(2)))     xlabel('Tita0')     ylabel('Tita1')     zlabel('Cost')     hold on;     drawnow      subplot(2,2,1);     grid on;         % Calculate the decision boundary line     plot_y = theta(2).*plot_x + theta(1);  % &lt;--- Boundary line      % Plot, and adjust axes for better viewing     plot(plot_x, plot_y)     hold on;     drawnow  end  fprintf('Cost at initial theta (zeros): %f\n', cost); fprintf('Gradient at initial theta (zeros): \n'); fprintf(' %f \n', grad);   The above code is implementing gradient descent correctly (I think) but I am still unable to show the boundary line plot. Any suggestions would be appreciated.    logistic_costFunction.m  function [J, grad] = logistic_costFunction(theta, X, y)      % Initialize some useful values     m = length(y); % number of training examples      grad = zeros(size(theta));      h = sigmoid(X * theta);     J = -(1 / m) * sum( (y .* log(h)) + ((1 - y) .* log(1 - h)) );      for i = 1 : size(theta, 1)         grad(i) = (1 / m) * sum( (h - y) .* X(:, i) );     end  end   EDIT:  As per the below answer by @Esmailian, now I have something like this:  [m, n] = size(x);  x1_class = [ones(m, 1) x1' dat1']; x2_class = [ones(m, 1) x2' dat2'];  x = [x1_class ; x2_class] How can one refute John Searle's "syntax is not semantics" argument against strong AI? Moyal Product in Non Commutative Quantum Mechanics Can someone please explain me what is a ?  Also, how does putting $$X_a(\psi) ~=~ x_a\star\psi$$ realise $$[X_a,X_b]=i\theta_{ab}{\bf 1}?$$   Ref: Why don't metals bond when touched together? It is my understanding that metals are a crystal lattice of ions, held together by delocalized electrons, which move freely through the lattice (and conduct electricity, heat, etc.).   If two pieces of the same metal are touched together, why don't they bond?   It seems to me the delocalized electrons would move from one metal to the other, and extend the bond, holding the two pieces together. If the electrons don't move freely from one piece to the other, why would this not happen when a current is applied (through the two pieces)? When we refer to a house that belongs to a family, we say "family's house". Pluralizing family gives us "families". Referring to the houses of several families, we say "families' houses". Forming the plural possessive in such a case is rather simple.  I encountered a more complex use of this recently - referring to a single house owned by a single family in a set of houses owned by a set of families.  We can say "the families' houses" to refer to all of the houses owned by all of the families.  We can say "one of the families' houses" to refer to one of the houses owned by one or more of the families. In this context, "one of" applies to "the families' houses".  If we were instead to apply "one of" to "the families", and want to refer to the one house owned by "one of the families", how would this be written?  My first though was "one of the families's house", taking "one of the families" as a single noun and appending 's to it. This looks (and sounds) a bit strange, though. "One of the families' house" and "one of the family's house"/"one of the family's houses" seem wrong to me, and I can't really determine the correct way to say/write this.  Is there a definitively correct way that this should be written?  EDIT: To clarify, although I think I made it clear, in this context, there are several families, and each owns one house. The goal of the sentence is to refer to one of those houses without stating which specific house. Example: "The players and their families want to celebrate their team's victory; this will likely entail a party at one of the families's house". Could someone make the proof into a hinted exercise? Let $(c_n)$ be a sequence of positive numbers.  Could someone make the proof of the inequality  $\displaystyle\limsup_{n\to\infty}\sqrt[n]{c_n}\leq\limsup_{n\to\infty}\frac{c_{n+1}}{c_n}$  into a hinted exercise? What is the equation for the tension on the ends of a cable suspended at different heights? I'm looking for an equation to find the tension on the ends of a cable suspended between two poles (one higher than the other) with no load but the cable itself.    I determined that the tension would be different on each end, that the shape of the suspended cable would be a  truncated at one end, and that the following would be the variables necessary in the equation:   cable weight cable length vertical distance between ends horizontal distance between ends   Some links that could be helpful: How to find a real solution Homeomorphism(topological spaces) version of Cantor–Bernstein–Schroeder theorem combine 2 fields in 1 to use it in the "group by" section of the reports is it possible to combine two fields in one and use that field to group by in reports? for example, i would like to combine ee id and ee name fields in 1 and show as 1 field in the "group by" section on reports. "Parsing filters unsupported" error during extraction of RAR file I have received an .rar which I wish to unpack as it contains something rather important to me that I need to really have now. However even though I can view the contents of the .rar archive in the Archive Manager, I am unable to extract it due to this error:    The archive should contain two folders within it, each though contain at least 10 audio files as well as a PDF file each (I don't know what the contents exactly should be except for there should be audio files in there, and the content I have described is what I can see from the Archive Manager's view). So the only thing I am left with except the error is one of the folders and one of the audio files, but it says it has 0 bytes in it.  So how exactly do I fix this problem? I am running Ubuntu GNOME 16.04.1 with GNOME 3.20.  Information Update:  In reply to a comment requesting the output from the dpkg -l unrar unrar-free command:  Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name           Version      Architecture Description +++-==============-============-============-================================= un  unrar          &lt;none&gt;       &lt;none&gt;       (no description available) dpkg-query: no packages found matching unrar-free Is this correct: "Our listeners are what make X"? Is it possible to set a global Blender preference so that all keyframed motion is linear by default? Anti-Matter Black Holes Assuming for a second that there were a pocket of anti matter somewhere sufficiently large to form all the type of object we can see forming from normal matter - then one of these objects would be a black hole.  Question is, would there be a difference between an anti matter black hole and a normal matter black hole - in terms of how would the matter/anti-matter make the black hole different, or would they be the same?  I would expect the answer to be that the black hole formed from anti matter would retain the anti-matter properties in such a way that if it was to merge with a black hole at same size formed from normal matter that they would annihilate  each other con convert into pure energy - Would that be a correct understanding? gdal.VectorTranslate returns an empty file