I have limited experience with matlab's nn toolbox but I can manage to train a network and get it to generate decent results. However, I have no idea how many hidden layers, hidden nodes, which transfer function for each layer, and which training method to use.  I tried searching online for tutorials but all of it seems really vague and subjective. Can someone direct me to any good websites?
I'm looking for a paper that could help in giving a guideline on how to choose the hyperparameters of a deep architecture, like stacked auto-encoders or deep believe networks. There are a lot of hyperparameters and I'm very confused on how to choose them. Also using cross-validation is not an option since training really takes a lot of time!
Shell script throws a not found error when run from a sh file. But if entered manually the commands work I'm trying to use the following script to generate a sitemap for my website. When I run it as sh thsitemap.sh I get an error like this and creates an empty sitemap.xml file:  thsitemap.sh: 22: thsitemap.sh: [[: not found thsitemap.sh: 42: thsitemap.sh: [[: not found thsitemap.sh: 50: thsitemap.sh: Syntax error: "(" unexpected   But as the same user root when I manually copy and paste these lines on the terminal, it works without any error and the sitemap.xml file have all the urls. What's the problem? How can I fix this?  #!/bin/bash ############################################## # modified version of original http://media-glass.es/ghost-sitemaps/ # for ghost.centminmod.com # http://ghost.centminmod.com/ghost-sitemap-generator/ ############################################## url="techhamlet.com" webroot='/home/leafh8kfns/techhamlet.com' path="${webroot}/sitemap.xml" user='leafh8kfns'       # web server user group='leafh8kfns'      # web server group  debug='n' # disable debug mode with debug='n' ############################################## date=`date +'%FT%k:%M:%S+00:00'` freq="daily" prio="0.5" reject='.rss, .gif, .png, .jpg, .css, .js, .txt, .ico, .eot, .woff, .ttf, .svg, .txt' ############################################## # create sitemap.xml file if it doesn't exist and give it same permissions # as nginx server user/group if [[ ! -f "$path" ]]; then     touch $path     chown ${user}:${group} $path fi  # check for robots.txt defined Sitemap directive # if doesn't exist add one # https://support.google.com/webmasters/answer/183669 if [ -f "${webroot}/robots.txt" ]; then SITEMAPCHECK=$(grep 'Sitemap:' ${webroot}/robots.txt)     if [ -z "$SITEMAPCHECK" ]; then     echo "Sitemap: http://${url}/sitemap.xml" &gt;&gt; ${webroot}/robots.txt     fi fi ############################################## echo "" &gt; $path  # grab list of site urls list=`wget -r --delete-after $url --reject=${reject} 2&gt;&amp;1 |grep "\-\-"  |grep http | grep -v 'normalize\.css' | awk '{ print $3 }'`  if [[ "$debug" = [yY] ]]; then     echo "------------------------------------------------------"     echo "Following list of urls will be submitted to Google"     echo $list     echo "------------------------------------------------------" fi  # put list into an array array=($list)  echo "------------------------------------------------------" echo ${#array[@]} "pages detected for $url"  echo "------------------------------------------------------"  # formatted properly according to # https://support.google.com/webmasters/answer/35738 echo "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; &lt;urlset xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9  http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"&gt;" &gt; $path  echo '     ' &gt;&gt; $path;    for ((i=0;i&lt;${#array[*]};i++)); do echo "&lt;url&gt;     &lt;loc&gt;${array[$i]:0}&lt;/loc&gt;     &lt;lastmod&gt;$date&lt;/lastmod&gt;     &lt;changefreq&gt;$freq&lt;/changefreq&gt;     &lt;priority&gt;$prio&lt;/priority&gt; &lt;/url&gt;" &gt;&gt; $path    done echo "" &gt;&gt; $path echo "&lt;/urlset&gt;" &gt;&gt; $path  # notify Google # URL encode urls as per https://support.google.com/webmasters/answer/183669 if [[ "$debug" = [nN] ]]; then     wget  -q --delete-after http://www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2F${url}%2Fsitemap.xml      rm -rf ${url} else     echo "wget  -q --delete-after http://www.google.com/webmasters/tools/ping?sitemap=http%3A%2F%2F${url}%2Fsitemap.xml"      echo "rm -rf ${url}" fi echo "------------------------------------------------------"  exit 0 Trying to install Ubuntu on Dell XPS 15 (9570) I have been trying to install Ubuntu on my new laptop:     Dell XPS 15 (9570)   Windows 10 Home 64bit English   8th Generation Intel(R) Core(TM) i7-8750H Processor (9M Cache, up to 4.1 GHz, 6 cores)   16GB, 2x8GB, DDR4, 2666MHz   256GB M.2 2280 PCIe Solid State Drive   NVIDIA(R) GeForce(R) GTX 1050Ti with 4GB GDDR5     I began by trying to install Ubuntu 18.04 LTS using an 8GB USB drive. The first issue I ran into was getting frozen on the bootup screen on the fourth dot. After a couple tries, I plugged in my monitor (through HDMI) and it stopped getting stuck all of a sudden.    Next, I tried to go through the installation and when I clicked on restart now, my computer froze and I had to shut it down manually and start it back up again. At this point I got to the login screen and logged in but after entering my password it got stuck on a purple screen with my mouse pointer (which was frozen). I was able to get into a shell at this point (with ctrl+alt+f4) and attempted to run sudo apt-get install nvidia-390 but this froze when it reached building initial module for 4.15.0-22-generic and upon reboot I had to run sudo dpkg --remove -a.    I was unable to work around this so I attempted to install Ubuntu 16.04 which I could only do by adding acpi=off to the boot configuration (which by the way, I had a lot of trouble getting to since GRUB usually flashed in and then immediately disappeared and only occasionally would it stick around long enough for me to use). But when I try to boot up now, I never reach the screen with the five dots and instead immediately get stuck on a purple screen (with no mouse pointer).  I reinstalled Ubuntu 18.04 and am back to being stuck on the log-in screen.  What should I do? Is there any difference between “which” and “that”? I get double question marks when referring to labels inside figures Is it possible to have f.lux (software that adjusts display's color temperature) on Ubuntu 14.04? f.lux is software which adjusts temperature of your display according to time of the day. Is it possible to make f.lux work in Ubuntu 14.04? If so, maybe you can share your knowledge or point me to a guide. Get width of a given text as length I'm working with  that has X Y coordinates. They are akin to '3672187.92698000, 534175.72095400'.  I would like to convert them to longitude latitude so they are more like '-90.097017, 29.963176'.  I've seen this  however I don't have that software. I was able to download and install  but I am unfortunately perplexed by its complicated interface. Would like to do the conversion with it, if possible. Implement a Selective Comment Ban How do I split a string, breaking at a particular character? Is normal extension of normal extension always normal? My Granddaughter has lost/forgotten her ID and passwords for her iPad. When the iPad powers on, it goes straight to an iCloud password request and I cannot get past it.  I have installed iTunes on my laptop but it fails to connect to the server (error 310).  I installed iCloud control panel and tried a restore but that failed because of "Find my iPad" was active, which I cannot turn off because of the original password problem!  This is driving me crazy. I just want to reset everything now so that I can hand it back to her. Can anyone help? Hyperlinks to web sites using anchors sometimes don't work This isn't a particularly major issue, but I've had this thing nagging me for a while. When looking at QGIS 3.4's global variables, user_full_name is assigned my given and surname, which includes a diaeresis (¨) somewhere in there. I can't seem to find any way to get QGIS to switch/adapt encoding and display the name correctly. The accented character gets switched to that ubiquitous black rhombus.  I looked for info on this behavior and found moderately similar issues like  and  but it's not exactly the same problem as it's not a geodata encoding issue but rather how QGIS deals with values pulled from the OS.  I have tried unchecking the Override system locale tickbox in Options|General as I prefer to use American English even though my OS is set to Canadian French. No effect to observe.  There's somewhat of a workaround right now which is to fix the name in the Project variable project_author as it is editable (it's filled with the offending global variable by default).  I'm curious to know, though, if someone has encountered this before and if there's a solution in QGIS. I'm talking about this nonsense:   Now, I'm aware that there are problems with the practicalities (or possibilities) of methods involving exotic matter with negative mass, and that kind of thing has been addressed here:   But in this case my question is different and more specific. Sweeping all the other problems of constructing such a beast under the rug, wouldn't this violate causality?  SR says that the simultaneity and relative ordering of events is dependent on the relative motion of the observer, but that no matter how it works out, if event A causes event B, no observer will see B first. One of the many problems with FTL travel (or signals) is that if any information is sent faster than light, there will exist an inertial frame in which the signal arrives before it is sent, a blatant violation of causality. (I think we can all agree, can we not, that the threshold should be extremely high before breaking assumptions that we're in a causal universe?)  So how is any scheme to travel faster than light, even if it may locally satisfy the equations of GR, not a blatant violation causality according to SR?  Is my understanding of GR incomplete and there's something in it that obviates the causality implications of SR? Or am I correct that FTL claims should be dismissed with extreme prejudice on this basis alone? (Pending a serious replicable experiment showing causality to be breakable.) What can you say about the range space and null space Let $V$ be a vector space over a field $F$ and $T$ a linear operator on $V$. If $T^2$$=$ $0$, what can you say about the relation of the range of $T$ to the null space of $T$? Is it acceptable to vote to close a question without leaving a comment? Although  is obviously an exceptionally poor question, it still amazes me that 5 people can vote to close and yet not one of them leave a comment to help explain how the poster can improve their question.  I see loads of similar examples where questions from new users are closed and heavily voted down without anyone taking any effort to explain why - not a pleasant experience for new users.  Is there anything that can be done to encourage users to leave comments when voting to close? Showing that $\int_0^\infty x^{-x} \mathrm{d}x \leq 2$. When trying to SSH into a particular Mac machine it gives me the following error :  ssh_exchange_identification: Connection closed by remote host   I have done some google searches on the issue but I haven't seem to find a definite answer. I did notice that on the machine that I am trying to SSH into, it does not have the ~/.ssh file even on there so I went ahead and created it and gave it correct permissions but that didn't help. Here is the verbose of when attempting to SSH into it:  penSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: Connecting to &lt;ComputerName&gt; [xxx.xxx.xxx.xxx] port 22. debug1: Connection established. debug1: identity file /Users/&lt;UserName&gt;/.ssh/id_rsa type 1 debug1: identity file /Users/&lt;UserName&gt;/.ssh/id_rsa-cert type -1 debug1: identity file /Users/&lt;UserName&gt;/.ssh/id_dsa type -1 debug1: identity file /Users/&lt;UserName&gt;/.ssh/id_dsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.2 ssh_exchange_identification: Connection closed by remote host   Any ideas on how to get SSH working? What is the mechanism by which magnetic fields do work? I've seen some conflicted answers to this question in texts and on the web, in the case of a dipole, for example.   Do magnetic fields do work directly, or is it their induced electric fields that do work? Can I acquire a Windows 8.1 licence by free upgrade from 7 to 10, then downgrading So, I have Windows 7 pro, and I'm looking to upgrade so that I can use some of the apps that are only available in Windows 8+. I considered just taking advantage of the free Windows 10 upgrade, and actually installed it at one point, but then I found out that there's forced automatic updates and decided that wasn't for me(I'm a bit paranoid after Android 4.4.4 killed Flash Player without telling me. :P). So, I did some research.   From what I read, the Windows 10 upgrade "consumes" your Windows 7 license into a Windows 10 license, and so even if you revert back after upgrading then you can still change your mind later and jump back to Windows 10. () I also read that Windows 10 has "downgrade" rights to Windows 8 and Windows 7, which to my understanding meant that if you have a Windows 10 key, you can also use it to install Windows 8 or 7 if you want. ()  My plan for the process is re-upgrade to 10, pull the license key, downgrade to 8 and use the license key, then upgrade to 8.1 via Windows Store, and end up on 8.1. So my questions are: Is this possible?  Will it wipe all my data in the process?(not a dealbreaker if it does, but I'd need to know that so I can back it up) Do I need to re-upgrade to 10 in order to downgrade to 8?  Any input is definitely appreciated. Thanks!