Is it common to preprocess image data before sending it through a deep net? I'm curious as how convolutional neural network are used in practice for object recognition. Is it common to perform data preprocessing before providing the data to the input layer ? If so, what types of preprocessing are common ?
How to prepare/augment images for neural network? I would like to use a neural network for image classification.  I'll start with pre-trained CaffeNet and train it for my application.    How should I prepare the input images?  In this case, all the images are of the same object but with variations (think: quality control).  They are at somewhat different scales/resolutions/distances/lighting conditions (and in many cases I don't know the scale).  Also, in each image there is an area (known) around the object of interest that should be ignored by the network.  I could (for example) crop the center of each image, which is guaranteed to contain a portion of the object of interest and none of the ignored area; but that seems like it would throw away information, and also the results wouldn't be really the same scale (maybe 1.5x variation).  Dataset augmentation  I've heard of creating more training data by random crop/mirror/etc, is there a standard method for this?  Any results on how much improvement it produces to classifier accuracy?
getting exception while putting list data into the map Consider a particle in a potential well. Let’s assume it’s a simple harmonic oscillator potential and the particle is in its ground state with energy E0 = (1/2) &#8463;&omega;0. We measure its position (measurement-1) with a high degree of accuracy which localises the particle, corresponding to a superposition of momentum (and therefore energy) states.  Now we measure the particle’s energy (measurement-2) and happen to find that it’s E10 = (21/2) &#8463;&omega;0. Where did the extra energy come from?  In the textbooks it’s claimed that the extra energy comes from the act of observation but I wonder how that could work. Measurement-1 which probed the position of the particle can’t have delivered to it a precise amount of energy, while measurement-2 might just have been passive. No doubt there is entanglement here between the particle state and the measuring device but where, and which measurement? Considering the three types of Devil Fruits that has been explained are 1. Paramecia Type - where the user can get super human abilities and change their body parts into weapons, etc. 2. Zoan type - where the use can turn into a particular animal and inherit its abilities 3. Logia Type - where the user's body inherits a particular element and the body becomes like air which cannot be touched or damaged by non Haki users.  So what exactly is the type of Gomu Gomu no Mi? It cannot be Zoan or Logia. It's very close to a Paramecia but still doesn't have a logical explanation to be of Paramecia type! So is it some special type of Devil Fruit? Just want to get clarification on something we're noticing in our org. Its regarding a new integration user we've created for an external application to connect to Salesforce. We also created a Connected App for this application to authenticate using OAuth. All of this is setup and working up to this point.   But one thing that we don't understand is there is a related list on the integration user detail page named "OAuth Connected Apps". We're concerned because although we are connecting fine and data is getting return to the external application no records are showing up in this "OAuth Connected Apps" related list. Should we expect to see Authorization or Access tokens in this list?   We just want to make sure we aren't bypassing the connected app in anyway, which we assume not, but just want to run it by the community and see. All comments are appreciated. Thanks ahead of time for the support. did + present tense (or ) Past tense of the verb What did you say?   What you said.         How did you and mum guess I wanted Agnes?   how you and Mum guessed I wanted Agnes   What is the meaning of above two sentences? When should I use "did + present tense" and the past tense of a verb? Cases environment compresses fractions? what should I do to stop the cases environment compressing the first line of the following? \begin{equation} \alpha_{mn} = \begin{cases} \frac{16\mu^2}{mn\pi^2\left[\pi^2(m^2/a^2 + n^2/b^2) - \mu^2\right]} &amp;\mbox{for } m \mbox{ and } n \mbox{ odd;}  \\ 0 &amp;\mbox{for } m \mbox{ or } n \mbox{ even;} \end{cases} \\[1ex] \end{equation}  I'm not sure to do tex on this site, but if anyone tries it they see the first case is compressed because it's a fraction. What is this story about 20 y.o. inexperienced "kids" fighting against a stronger foe in space? Years ago (mid 90's) I saw a show on network TV, and I'm trying to figure out what the name of it was. The parts of the plot I remember are:   The crew consisted of 20-year-olds (half were women). They were on some mission when they lose their commander. They must then try to get back home, while being tracked down by a foe in a faster, more powerful ship. One of the main characters turns traitor. He's locked up in the brig pending a decision on his fate. He hangs himself, and his body is incinerated by the crew. One of the main characters plays a video game that basically looks like a visor over his face. While playing the game, he's given an idea on how to outwit their foe by using the laser cannon on their ship to create a holographic projection of a larger ship. In the end, they are about to be destroyed by a torpedo launched from the enemy ship.  The torpedo is destroyed by a laser beam from a friendly capital ship that arrives at the last moment.  I remember there being some sort of romance sub-plot to the show as well between two crew members.    Other non-plot details:   This was live action, not animated. I remember the special effects being quite high-end.   The guns on the ships were manipulated by a person sitting in a gunnery chair. This chair projected a holographic view of the fight in front of him/her. From there the gunner used a joystick and a keypad to control the weapons on the ship.  All the crew wore simple Star-Trek style uniforms throughout the entire program, so no jumpsuits or helmets.    I don't know if this was a movie or a TV show, because I never actually saw the beginning of it. I think I saw at least 45 minutes worth, so it could be either as far as I know.   That's all I remember, other than I think the name of the show was fairly generic (something like "Star Command"). I loved the show as a kid even though I only saw it once. I would like to watch it again and see how lame it really was. What is meant by a "random variable"? What do they mean when they say "random variable"? I am currently writing my thesis and need to include a bunch of email conversions. I am using classicthesis. I wonder, how you would format stacked conversions. Moreover, how would you deal with the email header, signatures and line breaks: why do I need to add \\ all the time? This is the configuration I am currently experimenting with:  \documentclass[ oneside, openright, titlepage, dottedtoc, numbers=noenddot, headinclude, footinclude=true, cleardoublepage=empty, abstractoff, BCOR=5mm, paper=a4, fontsize=11pt, ngerman, american ] {scrreprt}  \PassOptionsToPackage{utf8}{inputenc} \usepackage{inputenc} \usepackage{blindtext}  \usepackage{framed}  % Vertical line that highlights quotations in an email. % Use \begin{leftbar} and \end{leftbar} environment. % Width of the line = 0.4pt % Space between the line and the text = 10pt % Requires \usepackage{framed} \renewenvironment{leftbar}{%   \def\FrameCommand{\vrule width 0.4pt \hspace{10pt}}%   \MakeFramed {\advance\hsize-\width \FrameRestore}}% {\endMakeFramed}  \usepackage{nicefrac} \usepackage[english]{babel} \usepackage[pdfspacing]{classicthesis}  \begin{document} \selectlanguage{ngerman} % american ngerman % Disable paragraph indentation. \setlength{\parindent}{0pt}     \begin{verbatim} From: john.doe@yahoo.com Subject: Your inquiry from 20042012 Date: Thu, 3 May 2012 11:34:54 +0200 To: Jane Doe &lt;jane.doe@hotmail.com&gt; \end{verbatim}  Jane Doe wrote: \begin{leftbar} \begin{leftbar} \begin{leftbar} \begin{leftbar} There are a couple of questions I like to ask. Please forward them if you cannot do so. \end{leftbar} I hope I can answer them after holidays. \end{leftbar} I am back from holidays now and will look through your questionaire the next days. \end{leftbar} Thank you, Mr. Doe - I am awaiting your answers. \end{leftbar}  Dear Mrs. Doe,\\ \ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut molestie placerat pharetra. In quam leo, tincidunt ut consequat eget, malesuada sit amet urna. Morbi et interdum arcu. Nullam nisi nunc, ullamcorper vitae pulvinar eu, suscipit ut augue.\\ \ Donec risus mi, accumsan ac interdum id, molestie sed mauris. Suspendisse porttitor luctus justo in ullamcorper. Proin in neque magna. Mauris quis arcu eget enim mattis pharetra vitae a dolor. Nam aliquam consectetur mollis. Ut at sem quis dolor faucibus fringilla. Quisque cursus vehicula odio, vitae placerat ipsum dapibus id.\\ \ Best regards\\ John Doe\\ \ (See attached file: Questions\_Doe.doc)  \begin{verbatim} _______________________________________________________ Administration New York John Doe Mainstr. 3 11111 New York  T:        (011) 212-4301 F:            (011) 212-954301 M:         john.doe@yahoo.com \end{verbatim}  \begin{leftbar} My question I looking forward to reading the answers to my questions:\\ \ 1. Is the world analog or digital? \end{leftbar} digital  \begin{leftbar} 2. How long does the world exist?  \end{leftbar} analog since 1984, digital since 1999  \end{document}     This is what the above latex example looks like.    I also saw  but I do not want to use &gt; or colors. My settings are inspired by this  and this . How do I calculate my skill modifier? I'm trying to fill out the skills section on my first character, but when I look at the character sheets in the Starter Set as examples of how to make a character, the skills that are circled have higher modifiers than their Dexterity or Strength or whatever should make them.  I've filled out all skills but those. What do I add to the ability modifier to get those numbers?   My abilities are Strength 13, Dexterity 14, Constitution 11, Intelligence 15, Wisdom 8, and Charisma 8. Proficiencies are Arcana, Athletics, History, Investigation and Stealth. My saving throws are Strength and Dexterity.   I just started D&amp;D and have the Player's Handbook, DM's Guide, Monster Manual, and the Starter Set. Calculating $\lim_{n\to\infty}\sqrt[n]{2^n-n^2}$ I want to do the not independent sign in latex without having to install or define new commands (since I am using latexIT and I cannot load new packages).  Currently I use the following sign for independent:  X{\perp\!\!\!\perp}Y   What can I use for X not independent of Y?  I.e., something like this: ? Solving functional differential equation $f'(x)=2f(2x)-f(x)$ Show that there is at least a nonzero function $f$, differentiable on $[0,+\infty)$, satisfying $$f'(x)=2f(2x)-f(x) \qquad \forall x&gt;0 $$   $$M_n:=\int_{0}^{\infty}x^nf(x)dx&lt;\infty \qquad \forall n\in  \mathbb{N} $$   My best idea so far is to assume that the solution is a power series, i.e.  $$ f(x)=\sum_{n=0}^{\infty}a_nx^n\qquad \forall x&gt;0$$ Then the equation becomes $$ \sum_{n=0}^{\infty}na_nx^{n-1}=2\sum_{n=0}^{\infty}a_n2^nx^n-\sum_{n=0}^{\infty}a_nx^n$$ equating all the coefficients of the same degree I get $$na_n=(2^{n}-1)a_{n-1}\qquad \forall n\geq 1$$ So setting $a_0=1$, I get $$a_{n}=\frac{1}{n!}\prod_{k=1}^{n}(2^k-1) \qquad \forall n$$ But does the power series actually converge? Using Hadamard's formula, and that $2^{k}-1\geq 2^{k-1}$, $$ |a_n|^{1/n}\geq\frac{1}{(n!)^{1/n}}\left[2^{n(n-1)/2}\right]^{1/n}\sim\frac{e}{n(2\pi n)^{1/2n}}2^{(n-1)/2}\to \infty$$ so the radius of converge of the series is $0$, so it doesn't actually define a solution on $[0,+\infty)$. Does quantum spin contribute to the angular momentum of a black hole? Display the original question beneath the answer edit form Often when I edit one of my answers, it's because I want to better address the original question. The only problem is that I can't see the original question while I'm editing my answer!  I'd love to see the original question text beneath the "answer edit" form. This way I could scroll down slightly to read it if I wanted to, or just ignore it if not.  Current workaround is to click the 'return to answer' link and hope that you remember to launch it in a new tab/window, then tab back and forth.    Imported from this uservoice item: Let $A$ be a ring with $0 \neq 1 $, which has $2^n-1$ invertible elements and less non-invertible elements. Prove that $A$ is a field. Counterexample for $A,B\triangleleft G,G/A\cong B \Rightarrow G/B\cong A$ I am studying statistics and I am wondering when it comes to standard error or a sampling if the calculation changes when there are weights added.   I have a weighted mean:  $$\mu_{w} = \dfrac{\sum_{i=1}^Nw_ix_i}{\sum_{i=1}^Nw_i}$$ and a weighted variance calculated by:  $$s^2_{w}=\dfrac{\sum_{i=1}^Nw_i}{(\sum_{i=1}^Nw_i)^2-\sum_{i=1}^Nw_i^2}\cdot \sum_{i=1}^N(x_i-\mu)^2$$  is the sampling error still calculated as  $$\text{SE}=\sqrt{\dfrac{s^2_{w}}{n}}$$ How do I restore a Places folder I accidentally deleted in Nautilus? How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?  Before release Java 7, I followed  to install Java 6.  But it doesn't work for Java 7. There is no package sun-java7-xxx. How can you install Java 7?