Derivative of SortRetaining and reusing a one-to-one mapping from a sortSort+Union on a listIntegrate fails for generic parameters but works for any specific values (v. 10.0.x bug)How to sort colors properly?Sort a list of derivativesUnexpected result from Sort with symbolic valuesWhat is the Alphabetical Inequality Test?

Grep over multiple files redirecting to a different filename each time

Was there a clearly identifiable "first computer" to use or demonstrate the use of virtual memory?

Is current (November 2019) polling about Democrats lead over Trump trustworthy?

Create virtual block device which writes to /dev/null

Find constant that allows an integral to be finite

What type of rhetorical device is the offering of a source which is really long and not specifying what part of the source is relevant?

At what point in time would humans notice a 21st century satellite observing them?

Why are Democrats mostly focused on increasing healthcare spending, rarely mentioning any proposals for decreasing the costs of healthcare services?

"Chess is 90% tactics" - should a player focus more on tactics in order to improve?

Creating vector (with lines/polygons) from raster based on paper map in QGIS

Implement the Max-Pooling operation from Convolutional Neural Networks

Why rounding odd font sizes to even?

Is 10/2 cable appropriate for a 240V, 30A garage heater outlet?

What spells can be countered?

What is the lowest level at which a human can beat the 100m world record (or: the presumed human limit) without using magic?

What's the name of the role of characters who buff teammates?

Physical interpretation of complex numbers

Can I request a credit item be removed from my report as soon as it is paid in full?

What do you call someone whose unmarried partner has died?

Can a Scourge Aasimar fly?

What are standard cryptographic assumptions?

Is it a good idea to contact a candidate?

Why do some papers have so many co-authors?

Polling on Impeachment



Derivative of Sort


Retaining and reusing a one-to-one mapping from a sortSort+Union on a listIntegrate fails for generic parameters but works for any specific values (v. 10.0.x bug)How to sort colors properly?Sort a list of derivativesUnexpected result from Sort with symbolic valuesWhat is the Alphabetical Inequality Test?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;

.everyonelovesstackoverflowposition:absolute;height:1px;width:1px;opacity:0;top:0;left:0;pointer-events:none;








3














$begingroup$


I want to calculate gradient of Sort[x1,x2,x3,x4] but it seems like I'm getting a wrong answer. Specifically Plot[Sort[2, 1, x, 10][[4]], x, -20, 20] gives me



enter image description here



while D[Sort[2,1,x,10],x] returns 0,0,0,1, which is not true.



Is there a way to fix it?










share|improve this question










$endgroup$










  • 3




    $begingroup$
    Since Sort[2, 1, x, 10] yields 1, 2, 10, x and the derivative of 1, 2, 10, x is 0, 0, 0, 1, I'd say the derivative is correct. What do you think it should be?
    $endgroup$
    – Michael E2
    Jul 20 at 22:48










  • $begingroup$
    As for the Plot[], since it holds its argument, it won't sort 2, 1, x, 10 and then plug in x; instead, it plugs in x and then sorts (then takes part 4, which will be the greatest of the four numbers. -- I'm not sure which order of operations (plug in then sort or the reverse) you want. Max[2,1,x,10] might be a better way to approach it.
    $endgroup$
    – Michael E2
    Jul 20 at 22:51











  • $begingroup$
    Derivative is HevysideTheta(x-10) as you can see from the graph.
    $endgroup$
    – stiv
    Jul 20 at 22:52










  • $begingroup$
    Try D[Max[2, 1, x, 10], x].
    $endgroup$
    – Michael E2
    Jul 20 at 22:53










  • $begingroup$
    Max is a different function, which works, Sort doesn't. I need to differentiate Sort, not Max.
    $endgroup$
    – stiv
    Jul 20 at 22:56

















3














$begingroup$


I want to calculate gradient of Sort[x1,x2,x3,x4] but it seems like I'm getting a wrong answer. Specifically Plot[Sort[2, 1, x, 10][[4]], x, -20, 20] gives me



enter image description here



while D[Sort[2,1,x,10],x] returns 0,0,0,1, which is not true.



Is there a way to fix it?










share|improve this question










$endgroup$










  • 3




    $begingroup$
    Since Sort[2, 1, x, 10] yields 1, 2, 10, x and the derivative of 1, 2, 10, x is 0, 0, 0, 1, I'd say the derivative is correct. What do you think it should be?
    $endgroup$
    – Michael E2
    Jul 20 at 22:48










  • $begingroup$
    As for the Plot[], since it holds its argument, it won't sort 2, 1, x, 10 and then plug in x; instead, it plugs in x and then sorts (then takes part 4, which will be the greatest of the four numbers. -- I'm not sure which order of operations (plug in then sort or the reverse) you want. Max[2,1,x,10] might be a better way to approach it.
    $endgroup$
    – Michael E2
    Jul 20 at 22:51











  • $begingroup$
    Derivative is HevysideTheta(x-10) as you can see from the graph.
    $endgroup$
    – stiv
    Jul 20 at 22:52










  • $begingroup$
    Try D[Max[2, 1, x, 10], x].
    $endgroup$
    – Michael E2
    Jul 20 at 22:53










  • $begingroup$
    Max is a different function, which works, Sort doesn't. I need to differentiate Sort, not Max.
    $endgroup$
    – stiv
    Jul 20 at 22:56













3












3








3





$begingroup$


I want to calculate gradient of Sort[x1,x2,x3,x4] but it seems like I'm getting a wrong answer. Specifically Plot[Sort[2, 1, x, 10][[4]], x, -20, 20] gives me



enter image description here



while D[Sort[2,1,x,10],x] returns 0,0,0,1, which is not true.



Is there a way to fix it?










share|improve this question










$endgroup$




I want to calculate gradient of Sort[x1,x2,x3,x4] but it seems like I'm getting a wrong answer. Specifically Plot[Sort[2, 1, x, 10][[4]], x, -20, 20] gives me



enter image description here



while D[Sort[2,1,x,10],x] returns 0,0,0,1, which is not true.



Is there a way to fix it?







list-manipulation calculus-and-analysis sorting






share|improve this question














share|improve this question











share|improve this question




share|improve this question










asked Jul 20 at 22:43









stivstiv

1695 bronze badges




1695 bronze badges










  • 3




    $begingroup$
    Since Sort[2, 1, x, 10] yields 1, 2, 10, x and the derivative of 1, 2, 10, x is 0, 0, 0, 1, I'd say the derivative is correct. What do you think it should be?
    $endgroup$
    – Michael E2
    Jul 20 at 22:48










  • $begingroup$
    As for the Plot[], since it holds its argument, it won't sort 2, 1, x, 10 and then plug in x; instead, it plugs in x and then sorts (then takes part 4, which will be the greatest of the four numbers. -- I'm not sure which order of operations (plug in then sort or the reverse) you want. Max[2,1,x,10] might be a better way to approach it.
    $endgroup$
    – Michael E2
    Jul 20 at 22:51











  • $begingroup$
    Derivative is HevysideTheta(x-10) as you can see from the graph.
    $endgroup$
    – stiv
    Jul 20 at 22:52










  • $begingroup$
    Try D[Max[2, 1, x, 10], x].
    $endgroup$
    – Michael E2
    Jul 20 at 22:53










  • $begingroup$
    Max is a different function, which works, Sort doesn't. I need to differentiate Sort, not Max.
    $endgroup$
    – stiv
    Jul 20 at 22:56












  • 3




    $begingroup$
    Since Sort[2, 1, x, 10] yields 1, 2, 10, x and the derivative of 1, 2, 10, x is 0, 0, 0, 1, I'd say the derivative is correct. What do you think it should be?
    $endgroup$
    – Michael E2
    Jul 20 at 22:48










  • $begingroup$
    As for the Plot[], since it holds its argument, it won't sort 2, 1, x, 10 and then plug in x; instead, it plugs in x and then sorts (then takes part 4, which will be the greatest of the four numbers. -- I'm not sure which order of operations (plug in then sort or the reverse) you want. Max[2,1,x,10] might be a better way to approach it.
    $endgroup$
    – Michael E2
    Jul 20 at 22:51











  • $begingroup$
    Derivative is HevysideTheta(x-10) as you can see from the graph.
    $endgroup$
    – stiv
    Jul 20 at 22:52










  • $begingroup$
    Try D[Max[2, 1, x, 10], x].
    $endgroup$
    – Michael E2
    Jul 20 at 22:53










  • $begingroup$
    Max is a different function, which works, Sort doesn't. I need to differentiate Sort, not Max.
    $endgroup$
    – stiv
    Jul 20 at 22:56







3




3




$begingroup$
Since Sort[2, 1, x, 10] yields 1, 2, 10, x and the derivative of 1, 2, 10, x is 0, 0, 0, 1, I'd say the derivative is correct. What do you think it should be?
$endgroup$
– Michael E2
Jul 20 at 22:48




$begingroup$
Since Sort[2, 1, x, 10] yields 1, 2, 10, x and the derivative of 1, 2, 10, x is 0, 0, 0, 1, I'd say the derivative is correct. What do you think it should be?
$endgroup$
– Michael E2
Jul 20 at 22:48












$begingroup$
As for the Plot[], since it holds its argument, it won't sort 2, 1, x, 10 and then plug in x; instead, it plugs in x and then sorts (then takes part 4, which will be the greatest of the four numbers. -- I'm not sure which order of operations (plug in then sort or the reverse) you want. Max[2,1,x,10] might be a better way to approach it.
$endgroup$
– Michael E2
Jul 20 at 22:51





$begingroup$
As for the Plot[], since it holds its argument, it won't sort 2, 1, x, 10 and then plug in x; instead, it plugs in x and then sorts (then takes part 4, which will be the greatest of the four numbers. -- I'm not sure which order of operations (plug in then sort or the reverse) you want. Max[2,1,x,10] might be a better way to approach it.
$endgroup$
– Michael E2
Jul 20 at 22:51













$begingroup$
Derivative is HevysideTheta(x-10) as you can see from the graph.
$endgroup$
– stiv
Jul 20 at 22:52




$begingroup$
Derivative is HevysideTheta(x-10) as you can see from the graph.
$endgroup$
– stiv
Jul 20 at 22:52












$begingroup$
Try D[Max[2, 1, x, 10], x].
$endgroup$
– Michael E2
Jul 20 at 22:53




$begingroup$
Try D[Max[2, 1, x, 10], x].
$endgroup$
– Michael E2
Jul 20 at 22:53












$begingroup$
Max is a different function, which works, Sort doesn't. I need to differentiate Sort, not Max.
$endgroup$
– stiv
Jul 20 at 22:56




$begingroup$
Max is a different function, which works, Sort doesn't. I need to differentiate Sort, not Max.
$endgroup$
– stiv
Jul 20 at 22:56










2 Answers
2






active

oldest

votes


















8
















$begingroup$

Treating Sort as a function from the disjoint union of $bf R^n$, $n=0,1,2,dots$, to the same union, here is one way to define the derivative. I'll call the numerical sort NSort, just so I don't have to overwrite a built-in function.



NSort[list_?(VectorQ[#, NumericQ] &)] := NumericalSort[list];

Derivative[orders_List][NSort][list_List] /; Length[orders] == Length[list] :=
With[args = Array[Slot, Length@orders],
Evaluate@Piecewise[
Function[
p, D[p, Sequence @@ Transpose@args, orders],
Less @@ p] /@ Permutations[args],
Indeterminate
] & @@ list]


OP's example:



df = D[NSort[2, 1, x, 10], x]


Mathematica graphics



Plot[Indexed[df, 4], x, -20, 20] 


enter image description here



Another example:



D[NSort[2, 1, 3 x, x^2], x, 2] // PiecewiseExpand


Mathematica graphics






share|improve this answer












$endgroup$














  • $begingroup$
    COOL! Thank you so much!
    $endgroup$
    – stiv
    Jul 21 at 1:58










  • $begingroup$
    @stiv You're welcome.
    $endgroup$
    – Michael E2
    Jul 21 at 3:10


















4
















$begingroup$

Although this is definitely an XY problem, here is a possible solution:



list = 2, 1, x, 10;
listDer = D[list, x];

Plot[
listDer[[Ordering[list, -1]]]
, x, -20, 20
]


enter image description here






share|improve this answer










$endgroup$










  • 1




    $begingroup$
    This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
    $endgroup$
    – Michael E2
    Jul 21 at 0:39






  • 1




    $begingroup$
    @MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
    $endgroup$
    – AccidentalFourierTransform
    Jul 21 at 0:45












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "387"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f202469%2fderivative-of-sort%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









8
















$begingroup$

Treating Sort as a function from the disjoint union of $bf R^n$, $n=0,1,2,dots$, to the same union, here is one way to define the derivative. I'll call the numerical sort NSort, just so I don't have to overwrite a built-in function.



NSort[list_?(VectorQ[#, NumericQ] &)] := NumericalSort[list];

Derivative[orders_List][NSort][list_List] /; Length[orders] == Length[list] :=
With[args = Array[Slot, Length@orders],
Evaluate@Piecewise[
Function[
p, D[p, Sequence @@ Transpose@args, orders],
Less @@ p] /@ Permutations[args],
Indeterminate
] & @@ list]


OP's example:



df = D[NSort[2, 1, x, 10], x]


Mathematica graphics



Plot[Indexed[df, 4], x, -20, 20] 


enter image description here



Another example:



D[NSort[2, 1, 3 x, x^2], x, 2] // PiecewiseExpand


Mathematica graphics






share|improve this answer












$endgroup$














  • $begingroup$
    COOL! Thank you so much!
    $endgroup$
    – stiv
    Jul 21 at 1:58










  • $begingroup$
    @stiv You're welcome.
    $endgroup$
    – Michael E2
    Jul 21 at 3:10















8
















$begingroup$

Treating Sort as a function from the disjoint union of $bf R^n$, $n=0,1,2,dots$, to the same union, here is one way to define the derivative. I'll call the numerical sort NSort, just so I don't have to overwrite a built-in function.



NSort[list_?(VectorQ[#, NumericQ] &)] := NumericalSort[list];

Derivative[orders_List][NSort][list_List] /; Length[orders] == Length[list] :=
With[args = Array[Slot, Length@orders],
Evaluate@Piecewise[
Function[
p, D[p, Sequence @@ Transpose@args, orders],
Less @@ p] /@ Permutations[args],
Indeterminate
] & @@ list]


OP's example:



df = D[NSort[2, 1, x, 10], x]


Mathematica graphics



Plot[Indexed[df, 4], x, -20, 20] 


enter image description here



Another example:



D[NSort[2, 1, 3 x, x^2], x, 2] // PiecewiseExpand


Mathematica graphics






share|improve this answer












$endgroup$














  • $begingroup$
    COOL! Thank you so much!
    $endgroup$
    – stiv
    Jul 21 at 1:58










  • $begingroup$
    @stiv You're welcome.
    $endgroup$
    – Michael E2
    Jul 21 at 3:10













8














8










8







$begingroup$

Treating Sort as a function from the disjoint union of $bf R^n$, $n=0,1,2,dots$, to the same union, here is one way to define the derivative. I'll call the numerical sort NSort, just so I don't have to overwrite a built-in function.



NSort[list_?(VectorQ[#, NumericQ] &)] := NumericalSort[list];

Derivative[orders_List][NSort][list_List] /; Length[orders] == Length[list] :=
With[args = Array[Slot, Length@orders],
Evaluate@Piecewise[
Function[
p, D[p, Sequence @@ Transpose@args, orders],
Less @@ p] /@ Permutations[args],
Indeterminate
] & @@ list]


OP's example:



df = D[NSort[2, 1, x, 10], x]


Mathematica graphics



Plot[Indexed[df, 4], x, -20, 20] 


enter image description here



Another example:



D[NSort[2, 1, 3 x, x^2], x, 2] // PiecewiseExpand


Mathematica graphics






share|improve this answer












$endgroup$



Treating Sort as a function from the disjoint union of $bf R^n$, $n=0,1,2,dots$, to the same union, here is one way to define the derivative. I'll call the numerical sort NSort, just so I don't have to overwrite a built-in function.



NSort[list_?(VectorQ[#, NumericQ] &)] := NumericalSort[list];

Derivative[orders_List][NSort][list_List] /; Length[orders] == Length[list] :=
With[args = Array[Slot, Length@orders],
Evaluate@Piecewise[
Function[
p, D[p, Sequence @@ Transpose@args, orders],
Less @@ p] /@ Permutations[args],
Indeterminate
] & @@ list]


OP's example:



df = D[NSort[2, 1, x, 10], x]


Mathematica graphics



Plot[Indexed[df, 4], x, -20, 20] 


enter image description here



Another example:



D[NSort[2, 1, 3 x, x^2], x, 2] // PiecewiseExpand


Mathematica graphics







share|improve this answer















share|improve this answer




share|improve this answer








edited Jul 21 at 1:31

























answered Jul 21 at 1:26









Michael E2Michael E2

161k13 gold badges219 silver badges521 bronze badges




161k13 gold badges219 silver badges521 bronze badges














  • $begingroup$
    COOL! Thank you so much!
    $endgroup$
    – stiv
    Jul 21 at 1:58










  • $begingroup$
    @stiv You're welcome.
    $endgroup$
    – Michael E2
    Jul 21 at 3:10
















  • $begingroup$
    COOL! Thank you so much!
    $endgroup$
    – stiv
    Jul 21 at 1:58










  • $begingroup$
    @stiv You're welcome.
    $endgroup$
    – Michael E2
    Jul 21 at 3:10















$begingroup$
COOL! Thank you so much!
$endgroup$
– stiv
Jul 21 at 1:58




$begingroup$
COOL! Thank you so much!
$endgroup$
– stiv
Jul 21 at 1:58












$begingroup$
@stiv You're welcome.
$endgroup$
– Michael E2
Jul 21 at 3:10




$begingroup$
@stiv You're welcome.
$endgroup$
– Michael E2
Jul 21 at 3:10













4
















$begingroup$

Although this is definitely an XY problem, here is a possible solution:



list = 2, 1, x, 10;
listDer = D[list, x];

Plot[
listDer[[Ordering[list, -1]]]
, x, -20, 20
]


enter image description here






share|improve this answer










$endgroup$










  • 1




    $begingroup$
    This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
    $endgroup$
    – Michael E2
    Jul 21 at 0:39






  • 1




    $begingroup$
    @MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
    $endgroup$
    – AccidentalFourierTransform
    Jul 21 at 0:45















4
















$begingroup$

Although this is definitely an XY problem, here is a possible solution:



list = 2, 1, x, 10;
listDer = D[list, x];

Plot[
listDer[[Ordering[list, -1]]]
, x, -20, 20
]


enter image description here






share|improve this answer










$endgroup$










  • 1




    $begingroup$
    This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
    $endgroup$
    – Michael E2
    Jul 21 at 0:39






  • 1




    $begingroup$
    @MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
    $endgroup$
    – AccidentalFourierTransform
    Jul 21 at 0:45













4














4










4







$begingroup$

Although this is definitely an XY problem, here is a possible solution:



list = 2, 1, x, 10;
listDer = D[list, x];

Plot[
listDer[[Ordering[list, -1]]]
, x, -20, 20
]


enter image description here






share|improve this answer










$endgroup$



Although this is definitely an XY problem, here is a possible solution:



list = 2, 1, x, 10;
listDer = D[list, x];

Plot[
listDer[[Ordering[list, -1]]]
, x, -20, 20
]


enter image description here







share|improve this answer













share|improve this answer




share|improve this answer










answered Jul 20 at 23:38









AccidentalFourierTransformAccidentalFourierTransform

7,0781 gold badge14 silver badges45 bronze badges




7,0781 gold badge14 silver badges45 bronze badges










  • 1




    $begingroup$
    This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
    $endgroup$
    – Michael E2
    Jul 21 at 0:39






  • 1




    $begingroup$
    @MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
    $endgroup$
    – AccidentalFourierTransform
    Jul 21 at 0:45












  • 1




    $begingroup$
    This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
    $endgroup$
    – Michael E2
    Jul 21 at 0:39






  • 1




    $begingroup$
    @MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
    $endgroup$
    – AccidentalFourierTransform
    Jul 21 at 0:45







1




1




$begingroup$
This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
$endgroup$
– Michael E2
Jul 21 at 0:39




$begingroup$
This seems likely but the insistence on avoid Max makes me think the OP is interested in other components of the sorted vector as well.
$endgroup$
– Michael E2
Jul 21 at 0:39




1




1




$begingroup$
@MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
$endgroup$
– AccidentalFourierTransform
Jul 21 at 0:45




$begingroup$
@MichaelE2 Yeah, probably. That's easy though: just drop the -1 in Ordering. Hard to tell what exactly OP wants anyway.
$endgroup$
– AccidentalFourierTransform
Jul 21 at 0:45


















draft saved

draft discarded















































Thanks for contributing an answer to Mathematica Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f202469%2fderivative-of-sort%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?