I have a problem. I have the following XML:  &lt;Data&gt;     &lt;Images&gt;         &lt;Image&gt;             &lt;Id&gt;&lt;/Id&gt;             &lt;Name&gt;&lt;/Name&gt;         &lt;/Image&gt;         &lt;Image&gt;             &lt;Id&gt;&lt;/Id&gt;             &lt;Name&gt;&lt;/Name&gt;         &lt;/Image&gt;     &lt;/Images&gt; &lt;/Data&gt;   And the following class:  [XmlRoot("Data")] public class MyData {     [XmlArray("Images")]     [XmlArrayItem("Image")]     public List&lt;myImage&gt; Images { get; } = new List&lt;myImage&gt;(); }  public class myImage {     public int Id { get; set; }     public string Name { get; set; }     public ImageSource imageSource { get; set; } }   But when I deserialize the XML using the following:  try {     var ser = new XmlSerializer(typeof(MyData));     var data = (MyData)ser.Deserialize(new StringReader(xmlString));      App.lstAlbums = data.Albums;     App.lstFotos = data.Fotos;     App.lstFormaten = data.Formaten; } catch (Exception e) {     //Give Error }   I get the following error: There was an error reflecting type 'MyApp.Models.MyData' The reason I get this error is because in the XML I don't have a tag for imageSource, while it is in the class. How can I deserialize the XML with the imageSource still in my class, but not in the XML?
Using C# .NET 2.0, I have a composite data class that does have the [Serializable] attribute on it.  I am creating an XMLSerializer class and passing that into the constructor:  XmlSerializer serializer = new XmlSerializer(typeof(DataClass));   I am getting an exception saying:      There was an error reflecting type.   Inside the data class there is another composite object.  Does this also need to have the [Serializable] attribute, or by having it on the top object, does it recursively apply it to all objects inside?
Reduce Classification Probability Threshold I have a question regarding classification in general. Let $f$ be a classifier, which outputs a set of probabilities given some data D. Normally, one would say: well, if $P(c|D) &gt; 0.5$, we will assign a class 1, otherwise 0 (let this be a binary classification).   My question is, what if I find out, that if I classify the class as 1 also when the probabilities are larger than, for instance 0.2, and the classifier performs better. Is it legitimate to then use this new threshold when doing classification?  I would interpret the necessity for lower classification bound in the context of the data emitting a smaller signal; yet still significant for the classification problem.  I realize this is one way to do it. However, if this is not correct thinking of reducing the threshold, what would be some data transformations, which emphasize individual features in a similar manner, so that the threshold can remain at 0.5? Fighter War Magic, Using Booming Blade / GFB If my Fighter (Eldritch Knight) use War Magic (PHB p. 75) to use the cantrip Booming Blade, will I be able to use my Extra Attack, and bonus action attack, to make 3 attacks at level 7? Is it possible to fail an ability check on purpose? Here are the general guidelines regarding ability checks:     The GM calls for an ability check when a character or monster attempts an action (other than an attack) that has a chance of failure. When the outcome is uncertain, the dice determine the results.   In some cases, you could want to fail an ability check. If you are climbing a wall an want to drop off, you fail simply because you stop attempting to climb, but in other cases, success and failure are both tied to the actual action and may both have desirable outcomes.  Example 1: Spell scrolls  An evil adversary wants you to cast a spell scroll for him, but you have him figured out and want to destroy his spell scroll instead, seemingly by accident. The rules on spell scrolls read:     If the spell is on your class’s spell list but of a higher level than you can normally cast, you must make an ability check using your spellcasting ability to determine whether you cast it successfully. The DC equals 10 + the spell’s level. On a failed check, the spell disappears from the scroll with no other effect.   A failure means that you successfully destroy the spell scroll.  Example 2: Amulet of the Planes  You are in possesion of the Amulet of the Planes. Your party is being overrun by terrible monsters, and the only way to save your party is to sacrifice yourself by sending yourself and the monsters to another plane of existence.     While wearing this Amulet, you can use an action to name a location that you are familiar with on another plane of existence. Then make a DC 15 Intelligence check. On a successful check, you cast the Plane Shift spell. On a failure, you and each creature and object within 15 feet of you travel to a random destination. Roll a d100. On a 1-60, you travel to a random location on the plane you named. On a 61-100, you travel to a randomly determined plane of existence.   By walking up to the monsters and failing the check, you and the monsters would be sent to another plane of existence.  The question  The rules seem to assume that you always want to succeed when you perform an ability check. Sometimes, however, you could want to fail on purpose. A sensible DM would rule that if you are skilled enough to succeed the check, then you would undoubtly be able to fail it on purpose as well. What does the rules as written say -- if anything -- about this circumstance?  According to RAW, is it possible to attempt an ability check and intentionally fail? How to deploy wsp to single web application My bibliography (made with biblatex) has all items close to each other. I would like to introduce some space between them, e.g. half a line.  How can I do this? I am doing , and am having a few problems with function notation. I understand the form f(x).  What does the form f: x ↦ y mean? Could you also give one or two examples?  And, if possible, state your source. Thank you. In the movie Harry Potter and the Goblet of Fire, there's a scene where the students are preparing for the Yule Ball.   Professor McGonagall is instructing the boys and girls, while Filch is choosing a vinyl record to place in an enormous turntable phonograph with a horn as big as Hagrid.   This has me wondering if the wizarding world, in general, plays vinyl records. Or, if this was just a Muggle artifact that Hogwarts kept as a novelty.   Are there other instances of witches or wizards using or owning phonographs or record players in either the books or movies? If so, what are they? (Examples help to illustrate if this was a one-off or a trend) I'm looking for a way to access raster layers in an Esri File-GeoDatabase without using ArcObjects or ArcPy, specifically I would like to access the raster layers with GDAL. I understand that the GDAL FileGDB and OpenFileGDB give access to vector datasets within File-GeoDatabases, and that ESRI's own FileGDB C++ API does not support raster access.   Is anyone out there aware of any open source solutions? When we push a box, the box applies an opposite force on my hand, but why does my hand move with the box as I push the box if the net force of my hand is 0? What is happening? Solving the Lie algebra of generators: path from algebra to matrix representation The Equation $11^x + 13^x + 17^x =19^x  $  Has    No Real Roots Only One Real Roots Exactly Two Real Roots  More than Two Real Roots    What I have done is   The function $f(x)=11^x + 13^x + 17^x -19^x  $ is strictly increasing and being always positive it have no roots I am trying to run an executable file from a network drive on Windows 7 Professional (64-bit) in order to install a program, but, each time I try, it doesn't run and the following message appears:  {path-name} The specified path does not exist. Check the path, and then try again.   I am definitely connected to the network drive as I can see all of the directories and files, and can even open non-executable file types. Also, I am fairly confident that this is neither a firewall nor a permissions issue. Can I become leader of the Thieves' Guild without finishing the main chain and is there any benefits from being the leader anyway? I completed the quest where you get the Skeleton Key and I don't really want to continue the chain until I've done a lot of the other stuff in the game, since the key is so useful. Brynjolf said before that I would become leader of the guild after everything was over.  Can I become the leader anyway without finishing the Nightingales quest chain? Are there any bonuses for being the leader? How do I transfer my Destiny account from Xbox 360 to Xbox One? How to apply a modifier in V2.9+ Why I can't apply mirror modifier? Here's screen Intuitive explanation of unit root How would you explain intuitively what is a unit root, in the context of the unit root test?   I'm thinking in ways of explaining much like I've founded in .  The case with unit root is that I know (little, by the way) that the unit root test is used to test for stationarity in a time series, but it's just it.   How would you go to explain it to the layperson, or to a person who has studied a very basic probability and statistics course?  UPDATE  I accepted whuber's answer as it is what most reflect what I asked here. But I urge everybody that came here to read Patrick's and Michael's answers also, as they are the natural "next step" in understanding the Unit Root. They use mathematics, but in a very intuitive way. Creating polyline-based "heatmap" from GPS tracks? This winter I am planning to track my downhill skiing/snowboarding using a GPS.  Most of my riding will occur at the same resort.  I would like to be able to create a sort of "heatmap" that shows the amount of runs that I have made in a given area.  As I add more and more GPS traces to my database, my goal would be to see a sort of linear heatmap of the most traveled areas.  Given the nature of downhill skiing, you would expect the uphill chairlift lines will be the "hottest" because it will be the only places visited over-and-over again.  Given that 1) my track will not be the same every time and 2) the area covered by following one "run" may be a few hundred feet wide, what might be the best way to analyze this "linear" data to create a sort of heatmap?  My thoughts were to buffer the lines, then intersect the polys to get a sort of Venn Diagram thing going.  My preference is to use open-source technologies.  I've got QGIS and PostGIS loaded and available.  UPDATE: In regards to @blah238's response, I was thinking of something that might be able to "collect" the number of passes ("runs") through an area, and then symbolize by the count.  Conceptually, this would be similar to ArcGIS "" (but for lines, not points) or  (but for multiple line in roughly the same area).  A more visual example of a similar concept might be a traffic-flow map, where highly-congested areas would equate to "highly-traveled" ski runs/areas:    I've read the following questions that may give some ideas, but they don't really address what I am trying to accomplish: What are the requirements for national parks? I'm trying to place a national park here:    But the button to create one with the Naturalist is greyed out:    I know the civopedia lists the requirements for building a national park, but they are either wrong or I'm having a hard time understanding them:   The tiles must be natural wonders, Mountains or a tile with an Appeal of Charming or better. As you can see the top are both Breathtaking and the bottom ones are part of the Great Barrier Reef wonder All four tiles must be owned by the same city. All tiles are within the boarders of Mbwila The tiles for a diamond shape. All tiles are connected close to each other in a diamond shape No tile can have an improvement or district on it. All tiles are in their initial condition.   So I'm probably missing something. Can someone tell me what's the problem? Is the Star Wars Universe just one galaxy? Sass Interpolation of Mixin, Function, and Variable names