Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "value"


Reshaping Data with Pandas

  • Let’s first shorten our data frame for further analysis by only keeping a few columns across which we want to analyze the data by creating a pivot table.
  • Pandas library provides a pivot_table() function which operates on an existing data-frame and accepts certain parameters across which the aggregation is to be done.
  • Use Case: Now what if we have the data in the form of a Pivot Table but we want to reshape it to a long data shape so we can perform some analytics in it?
  • Let's reshape the pivot table we had created earlier, back into the long data shape with each row representing an observation.
  • Let’s consider the Pivot Table again with the Region and Segment multi level index we had created.
  • Lastly, we’ll play around with the Pivot function which is another handy tool to reshape our data from long to wide shape.

save | comments | report | share on


Reshaping Data with Pandas

  • Let’s first shorten our data frame for further analysis by only keeping a few columns across which we want to analyze the data by creating a pivot table.
  • Pandas library provides a pivot_table() function which operates on an existing data-frame and accepts certain parameters across which the aggregation is to be done.
  • Use Case: Now what if we have the data in the form of a Pivot Table but we want to reshape it to a long data shape so we can perform some analytics in it?
  • Let's reshape the pivot table we had created earlier, back into the long data shape with each row representing an observation.
  • Let’s consider the Pivot Table again with the Region and Segment multi level index we had created.
  • Lastly, we’ll play around with the Pivot function which is another handy tool to reshape our data from long to wide shape.

save | comments | report | share on


Let’s Build a Simple Interpreter. Part 18: Executing Procedure Calls

  • Let’s go over each step in the algorithm and write code for the visit_ProcedureCall method to execute procedure calls.
  • In other words, when traversing the AST tree and visiting the ProcedureCall AST node during the interpretation phase, we need to get access to the block_node variable of the corresponding ProcedureDecl node.
  • We already have access to the procedure symbol that contains information about the procedure declaration, like the procedure’s formal parameters, so let’s find a way to store a reference to the block_node in the procedure symbol itself.
  • In this method we have access to both the procedure symbol and the procedure’s body, the block_node field of the ProcedureDecl AST node that points to the procedure body’s AST sub-tree.
  • When interpreting the body of a procedure, these methods will store and access values from the AR of the currently executing procedure, which will be at the top of the stack.

save | comments | report | share on


The Engine of the Neural Network: the Backpropagation Equation

  • After the forward propagation in a neural network, when all the inputs are multiplied by weights, added to biases, and passed through activation functions, we achieve a final prediction for the target value.
  • The backpropagation equation provides the basis for how weights and biases are adjusted in the most efficient way to reduce the cost function.
  • We can represent this in the equation below, which displays our first fraction, a large jump from weight to cost function, as a product of several fractions that represent a series of smaller jumps.
  • Now that we have all three derivatives, we can find the value of the first derivative, change in the cost function with respect to weight, by multiplying them together.
  • This value tells us what the biggest reduction in the cost function c will be for a certain weight w, and is the basis of backpropagation.

save | comments | report | share on


Wall Street has a new slogan for why stocks keep going up as the world falls apart: 'Nothing Matters'

  • If "buy stocks" is the answer to every question in investing, then the entire game of Wall Street doesn't matter.
  • Never mind that fewer than a third of China's 300 million migrant workers have returned to work, or that Chinese companies are warning that they won't make payroll, or that the entire global shipping trade has been disrupted as containers sit immobile.
  • It doesn't matter, everyone on Wall Street says, China will bounce back by the end of the first quarter and stocks will keep going up.
  • Ask just about anyone in the markets what is to blame for this weird environment and they'll tell you it's the fact that interest rates haven't gone up meaningfully since the financial crisis.
  • Rates haven't gone up because, while the economy is good by most widely-used measures, there seems to be a persistent lack of financial stability for many Americans.

save | comments | report | share on


Coronavirus, US economy proves Wall Street, politics 'nothing matters' slogan - Business Insider

  • If "buy stocks" is the answer to every question in investing, then the entire game of Wall Street doesn't matter.
  • Never mind that fewer than a third of China's 300 million migrant workers have returned to work, or that Chinese companies are warning that they won't make payroll, or that the entire global shipping trade has been disrupted as containers sit immobile.
  • It doesn't matter, everyone on Wall Street says, China will bounce back by the end of the first quarter and stocks will keep going up.
  • Ask just about anyone in the markets what is to blame for this weird environment and they'll tell you it's the fact that interest rates haven't gone up meaningfully since the financial crisis.
  • Rates haven't gone up because, while the economy is good by most widely-used measures, there seems to be a persistent lack of financial stability for many Americans.

save | comments | report | share on


Coronavirus, US economy proves Wall Street, politics 'nothing matters' slogan - Business Insider

  • If "buy stocks" is the answer to every question in investing, then the entire game of Wall Street doesn't matter.
  • Never mind that fewer than a third of China's 300 million migrant workers have returned to work, or that Chinese companies are warning that they won't make payroll, or that the entire global shipping trade has been disrupted as containers sit immobile.
  • It doesn't matter, everyone on Wall Street says, China will bounce back by the end of the first quarter and stocks will keep going up.
  • Ask just about anyone in the markets what is to blame for this weird environment and they'll tell you it's the fact that interest rates haven't gone up meaningfully since the financial crisis.
  • Rates haven't gone up because, while the economy is good by most widely-used measures, there seems to be a persistent lack of financial stability for many Americans.

save | comments | report | share on


The Zen of Go

  • Something that I’ve been thinking about a lot recently, when reflecting on the body of my own work, is a common subtitle, how should I write good code?
  • The goal of the Go Proverbs are to reveal a deeper truth about the design of the language, but how useful is advice like the empty interface says nothing to a novice from a language that doesn’t have structural typing?
  • For the remainder of this article, I’m going to look towards the Zen of Python and ask, is there anything that can inform the engineering values of Go programmers?
  • If you are writing a program that works perfectly, one time, for one fixed set of inputs then nobody cares if the code is good or bad because ultimately the output of the program is all the business cares about.

save | comments | report | share on


'This bubble will likely collapse': JPMorgan sounds the alarm on a hugely popular trade that's twice as overstretched as it was before the dot-com crash

  • They included Marko Kolanovic, JPMorgan's global head of macro, quantitative, and derivatives strategy, who expected that the shift to value would persist into Q1 2020.
  • He had identified a gulf between value's lag on one hand, and the outperformance of factors including momentum — which lifted many fast-growing technology stocks — and low volatility.
  • Value is still out of favor, while low-volatility and momentum-driven technology stocks are all the rage.
  • Investors are responding to the epidemic by shunning cyclical sectors of the economy like energy and heading for the safety of Treasuries and the fondness of tech stocks.
  • Consequently, the performance gap between energy and tech stocks is also as wide as it was during the dot-com craze — yet more evidence of a factor bubble in Kolanovic's book.
  • Apart from this very recent development, the ongoing boom of passive investing is contributing to the bubble, Kolanovic said.

save | comments | report | share on


Throw Out Your React State-Management Tools

  • If a component at the bottom of the hierarchy tree needs access to something from the top of that same tree, the default React solution is to pass those values - via props - down to the bottom component.
  • In the approach I've outlined above, I'm using shared state-management (via React's built-in Context API) in a discrete-and-targeted way.
  • I do not recommend this approach, but if you're dead-set on having a single, global, state-management solution with the Context API, you could do it that way.
  • Now let's imagine that, because the dev team wanted to use my proposed Context API solution as a single, global store to hold ALL THE THINGS!!!, they've placed the state variable for that <TextField> in <App>'s state (even though the <TextField> "lives" at the very bottom of the hierarchy in <BottomTier>).

save | comments | report | share on