analysis

Implementing of an inexact (approximate) Newton algorithm in Python using conjugate gradient

Implementing of an inexact (approximate) Newton algorithm in Python using conjugate gradient Question: I want to implement in Python an inexact (approximate) Newton algorithm given by pseudocode: Data: We have an x_0 in R^n and we let a function f:R^n->R, with positive hessian, 0<c1<1, 0<rho<1 The result: the result is to estimate the global minimum …

Total answers: 1

How to save multiple dataframe using one variable in a for loop

How to save multiple dataframe using one variable in a for loop Question: import numpy as np count = np.arange(0,1849) for i in range(0,6): for j in range (0,6): for k in range (0,4): for l in range (0,10): for m in count: case = data[(data["CURRENT_ENERGY_RATING_Code"] == i)&(data["PROPERTY_TYPE"] == j)&(data["BUILT_FORM"] == k)&(data["CONSTRUCTION_AGE_BAND"] == l)] case[m] …

Total answers: 3

Plotting sentiment analysis over time in python

Plotting sentiment analysis over time in python Question: I am trying to plot the results of my sentiment analysis over time. The code involves comments from a forum. An example of my code looks something like this: Timestamp Sentiment 2021-01-28 21:37:41 Positive 2021-01-28 21:32:10 Negative 2021-01-29 21:30:35 Positive 2021-01-29 21:28:57 Neutral 2021-01-29 21:26:56 Negative I …

Total answers: 2

Algorithm to find the "percolation" threshold in a weighed network

Algorithm to find the "percolation" threshold in a weighed network Question: I have some states that are linked by transition probabilities (embedded within a transition matrix as in a Markov chain). I want to summarise this transition matrix by considering only probabilities sufficiently high that they allow to go from one state (~node) to another …

Total answers: 2

Among MATLAB and Python, which one is good for statistical analysis?

Among MATLAB and Python, which one is good for statistical analysis? Question: Which one among the two languages is good for statistical analysis? What are the pros and cons, other than accessibility, for each? Asked By: user238469 || Source Answers: The SciPy and NumPy libraries for Python add in a ton of MatLab-equivalent functionality, to …

Total answers: 5