Science topic
Python - Science topic
Explore the latest questions and answers in Python, and find Python experts.
Questions related to Python
Which Machine learning algorithms suits best in the material science for the problems that aims to determine the properties and functions of existing materials. Eg. typical problem of determination of band gap of solar cell materials using ML.
Hello everyone,
I am currently exploring several options to give the collected data the greatest value possible.
I have demographic data on older people, where I perform various memory and mood tests. The previous hypotheses were the following:
- Drawing out the difference between dementia and depression.
- Identify if the digital tool is as effective as the classic one
- Contributing to the data collected as a predictor of dementia
A few years ago, studies talked about the real possibility of predicting some years before, what your future mental health will be in terms of memory.
Do you think there is any way to provide value in that sense, with demographic data, clinical tests like MoCa, Yesavage, Lawton, MFE?
Here you are some of these studies.
Study of the brain through images:
- Jagust, W. (2018). Images of the evolution and pathophysiology of Alzheimer's disease. Nature Reviews. Neuroscience, 19(11), 687–700. doi:10.1038/s41583-018-0067-3.
Analysis of biomarkers in cerebrospinal fluid or blood:
- Hampel, H., O'Bryant, S. E., Castrillo, J. I., Ritchie, C., Rojkova, K., Broich, K.,… Lista, S. (2018). PRECISION MEDICINE – The golden door for the detection, treatment and prevention of Alzheimer's disease. Journal of Alzheimer's Disease Prevention, 5(4), 243–259. doi:10.14283/jpad.2018.29.
Genetic studies:
- Karch, C. M., and Goate, A. M. (2015). Alzheimer's disease risk genes and mechanisms of disease pathogenesis. Biological Psychiatry, 77 (1), 43–51. doi:10.1016/j.biopsych.2014.05.006.
Cognitive evaluations and neuropsychological tests:
- Amariglio, R. E., Becker, J. A., Carmasin, J., Wadsworth, L. P., Lorius, N., Sullivan, C.,… Sperling, R. A. (2012). Subjective cognitive complaints and amyloid burden in cognitively normal older people. Neuropsychology, 50(12), 2880–2886. doi:10.1016/j.neuropsychologia.2012.08.011.
With python and with sk-learn is a best way to start?
Which features are the more relevants to add value to the prediction?
Thanks in advance,
I have processed the quad-pol SAR data using POLSARPRO tool, followed by matlab. Now to cross verify my results, I am looking for code in Python or Matlab to read the vv polarized file in .grd or .mlc format, followed by basic radiometric correction.
So I am conducting a research on changes in NO2 and aerosol index during a certain time period of 1 year. I am using sentinel-5 data. Following is the link:
I used anaconda(spyder) to analyze the data, creating a map for each day. So in total, there are like more than 30 images. A made a collage of these for my manuscript but it doesn't look quite neat. And is a bit difficult to comprehend.
Is there any way I can integrate these images into one i.e. one image per month that reveals the average. Any tool or software that is acceptable for research purpose. I really need help with this.
Dear All,
I have an imagery with a single fish species within each image along with a list of morphometric measurements of the fish (length, width, length of tail, etc). I would like to train a CNN model that will predict these measurements having as input only the images. Any ideas what kind of architecture is ideal for this task? I read about multioutput learning, but I haven't found a practical implementation in Python.
Thank you for your time.
As a student in Bachelor degree program in computer science field we have a project in course of "Language Theory", our project related with Natural Language Processing:
- First phase talks about giving a dictionary of "Physical Objects Name's" and give it a "Text" (all this in input) after that it gives us a list of "Physical Objects Name's" in our "Text" (this is the output as a file).
- Second phase is to use the last list to as input and implement a code that can classify words by topics and the result will be the general topic or idea of our text.
In this project I did the first phase but in the second one I don't understand how can I implement my code.
P.S: I try to add a python file but I can't, so for all those who wanna help me I can send them my work.
Instead of python or R, what tools can be used to generate heat map for sequencing data?
Hi everyone,
I'm working on a project where I need to compare the similarity between line curves on two separate charts, and I could use some guidance. Here’s the situation:
- First Chart Details: Contains two curves, both of which are moving averages. These curves are drawn on a browser canvas by a user. I have access to the x and y data points of these curves.
- Second Chart Details: Contains two curves, with accessible x and y data points. In this chart, the x-axis represents time, and the y-axis represents values.
Challenge:
- The two charts do not share the same coordinate system values.
Goal:
- I would like to compare the similarity in patterns between individual lines across the two charts (i.e., one line from the first chart vs. one line from the second chart).
- Additionally, I want to compare the overall shape formed by both lines on the first chart to the shape formed by both lines on the second chart.
Could anyone provide advice on methodologies or algorithms that could help in assessing the similarity of these line curves?
Thank you for any help.
Lovro Bajc
I have attached
I have amassed decades long data on bird populations and need help in calculating their population trends. There is a great bulk of research published worldwide where a variety of statistical packages (e.g TrendSpotter, rTrim here) were used to index population trends, however, I found none that would do this job using Python. While I have a profficient Python developer, the latter is having hard time deciding on the choice of appropriate statistical methods that could be used to analyse data. Anyone can help?
Greetings everyone,
I am a BTech student pursuing my bachelor's degree in Information Technology with a keen interest in machine learning. I am actively seeking mentors or co-authors for collaborative research endeavors in this domain. If you are currently engaged in research on machine learning or related topics and are open to collaboration, I would greatly appreciate it if you could reach out to me.
While I possess a solid understanding of machine learning concepts and proficiency in Python, I find myself at a juncture where I am seeking guidance on how to delve into a more focused research topic. I am enthusiastic about the prospect of working under the mentorship of experienced researchers in this field to further develop my skills and contribute meaningfully to ongoing projects.
If you are interested in exploring potential collaborations or if you have any advice to offer on initiating research in machine learning, please feel free to message me. I am eager to engage in fruitful discussions and collaborative efforts within the research community.
Thank you for your attention, and I'm excited about the prospect of collaborating and learning from fellow enthusiasts in the research community.
I am currently implementing the following two RL algorithms for 5G
(i) Power control to maximize throughput in a multi-gNB multi-UE scenario, and
(ii) Maximizing throughput subject to delay constraints in a single-gNB multi-UE scenario
I have made significant progress using an external Python program connected to NetSim's gNB scheduler. This setup facilitates the exchange of states and rewards between the scheduler and the Python program.
I am interested in exploring scenarios with time delays in state-reward exchanges, such as delayed state reception. How does RL adapt in such situations? I would appreciate any relevant research papers on this topic
On dftbephy code : How can we fix the problems for run python bands.py and python dftbephy-epc.py ?The problems on my system are ; bands.py line 92, dftbephy/calc.py line 176 and 253, dftbephy/epc.py line 83, dftbephy-epc.py line 138 and python/site-packages/scipy/linalg/decmpy.py line 578 there are errors which stop run. How can I resolve the issue or fix the problems as shown on screenshot file below.
I am trying to plot using the attached file data file, "wan_band.dat". In the past, I also found the same error. But somehow it was resolved automatically. Again, I stuck with it. I am not able to understand the reason for the issue. The error is mentioned in the attached image, "Reshape-error.PNG".
I am using the Python code to plot using the commands as,
import matplotlib.pyplot as plt
from matplotlib import rcParamsDefault
import numpy as np
%matplotlib inline
import os # To load image/data from path. #### ##################################################################################################
plt.rcParams["figure.dpi"]=150
plt.rcParams["figure.facecolor"]="white"
plt.rcParams["figure.figsize"]=(8, 6) ################################################################################################## ##################################################################################################
data = np.loadtxt("../wannier90/wan_band.dat")
k = np.unique(data[:, 0])
bands = np.reshape(data[:, 1], (-1, len(k)))
for band in range(len(bands)):
plt.plot(k, bands[band, :], "o-", markersize=5, linewidth=2, alpha=0.8, color='b', linestyle='-')
plt.xlim(min(k), max(k))
plt.xlim(0, 3.81842), plt.ylim(-8, 8)
##################################################################################################
plt.rc('ytick',labelsize=20),
plt.rc('xtick',labelsize=20),
plt.show() ##################################################################################################
I have a guess that the error has occurred cause of "bands = np.reshape(data[:, 1], (-1, len(k)))", but not able to understand.
Please help me about the same.
A variety of package managers are available for Python, such management being essential if you're using the wide variety of Python packages available for a diversity of applications ranging from quantum physics to machine learning. Which package managers and why would be the best ones to investing time in learning how to use?
Dear researchers,
I am trying to fit a FTIR spectrum with a reference spectrum using linear regression. However, I ended up with errors regarding the shape mismatch of the files used. I have tried my best to solve it but I have exhausted the best of my knowledge. I seek your advice on this Python code or how to handle this dataset. Considering the size of the query, I am sharing the Stackoverflow link here.
Any help is highly appreciated.
Forecasting using ANN for a single variable. Say, inflation.
I am researching on automatic modulation classification (AMC). I used the "RADIOML 2018.01A" dataset to simulate AMC and used the convolutional long-short term deep neural network (CLDNN) method to model the neural network. But now I want to generate the dataset myself in MATLAB.
My question is, do you know a good sources (papers or codes) that have produced a dataset for AMC in MATLAB (or Python)? In fact, have they produced the In-phase and Quadrature components for different modulations (preferably APSK and PSK)?
My Awesomest Network, Are amongst of You #Python #programming #language experts? I am sure there are. Could You help me, please?
Does anyone know the python code to calculate D10, D50 and D90 from %retain of sieves? Thank you.
My Awesomest Network, Is it neccessary to import a main library in Python and then import every sublibrary in parallel or is the first operation enough?
I need the link to download ArcGIS and Python for windows
My Awesomest Network, As You may know, I am during a process of continuous learning and upskilling. Now I attend Data Science course (SQL, Python et cetera) and I have to do some projects. Could You help me With them, please?
I am wondering if there is any way to refresh the input data from a dynamic text file in COMSOL for each iteration.
I have attempted to do this in Python, but COMSOL only solves the equation for the first input text file and not for any new files generated. The reason for this is that I have coupled COMSOL with a DEM-based software which feeds the input to COMSOL for each iteration. (same situation for the output to save the results as a text file)
While the connection is established through Python codes, I am unsure if Python can trigger the refresh button for each iteration!!!
Any suggestions would be greatly appreciated.
My Awesomest Network, Could You recommend me the best #Python on - line editor with all frameworks and libraries, please?
I'm trying to solve the integral shown in the picture.
I'm using python libraries to plot the integrand (numpy and matplotlib.pyplot), as well as scipy.integrate library to solve the integral.
However, I'd like to see other suggestions or tips to solve this problem.
Any comment will be well appreciated.
Thanks, Pablo
I need to perform uncertainty quantification by Monte Carlo Method, using Python in Abaqus, of the laminate grades (ply angle) and variation of the amount of fiber and resin. What recommendation would you give me to start, thank you very much.
AquaCrop-OSPy is a python package to automate tasks from AquaCrop (FAO) via Python. I would like to write some code so that AquaCrop-OSPy can suggest the irrigation schedule. I followed this tutorial regarding the Aqua Crop GUI. (https://www.youtube.com/watch?v=o5P35ogKDvw&ab_channel=FoodandAgricultureOrganizationoftheUnitedNations)
Based on the documentation and some jupyter notebooks, I selected rrMethod=1: Irrigation is triggered if soil water content drops below a specified threshold (or four thresholds representing four major crop growth stages (emergence, canopy growth, max canopy, senescence). I have written the following code (code regarding importing the packages has been removed to keep the question short)
smts = [99]*4 # soil moisture targets [99, 99, 99, 99]
max_irr_season = 300 # 300 mm (water)
path = get_filepath('champion_climate.txt')
wdf = prepare_weather(path)
year1 = 2018
year2 = 2018
maize = Crop('Maize',planting_date='05/01') # define crop
loam = Soil('ClayLoam') # define soil
init_wc = InitialWaterContent(wc_type='Pct',value=[40]) # define initial soil water conditions
irrmngt = IrrigationManagement(irrigation_method=1,SMT=smts,MaxIrrSeason=max_irr_season) # define irrigation management
model = AquaCropModel(f'{year1}/05/01',f'{year2}/10/31',wdf,loam,maize,
irrigation_management=irrmngt,initial_water_content=init_wc)
model.run_model(till_termination=True)
The code runs but I cannot find when and how much water (depth in mm) is irrigitated. model.irrigation_management.Schedule retrurns an array of zeros. The total amount of water is 300mm as can be seen on the code. I also tried dir(model.irrigation_management) to have a look at other methods and attributes but without any success.
Is what I am asking possible via AquaCrop-OSPy or have I misunderstood any concept?
Hi everyone, I am using Autodock and I'm fairly new and unskilled in it. I was performing a protein-ligand dock. I prepared the protein and ligand, saved them in pdbqt, prepared the gpf file and set the autogrind.exe and parameter file for running autogrid. But when I click on launch, it doesnt generate the glg and map files.
I'm not sure if this is of context but when I choose my ligand to set map types, it shows me a warning and a python shell errow, both of which I have attached below,
What should I do? Can anyone help me?
Dear all,
The overall goal is to disaggregate RCM output from daily resolution to 15 min resolution for different stations. For the stations, I have time series of about 10 years with 15 min resolutions for "calibration". Any suggestions on suitable approaches ...? I would be happy if the code (matlab, python) can be distributed. In the optimal case, several methods will be tested and compared w.r.t. their performance to represent 15 min resolution.
Cheers, Patrick
Help me fix error "modulenotfounderror: no module named 'keras'". Python: 3.11.7; Tensorflow: 2.15.0; Keras: 2.15.0. Update both of them on the latest version but cannot work.
write the normal code for the Simple Algorithm for Yield Estimation (SAFY) in python for Data simulation
Hello, I'm doing research on the degree of optimization of a groundwater monitoring network for a study area in The Netherlands. I'm conducting an elimination approach; monitoring wells that do not have informational relevance to the network are eliminated from the network. Now, I would like to analyze the sensitivity of the input data (groundwater level data of all monitoring wells) to understand how variations in the input data can affect the output of the model (optimal number of monitoring wells, monitoring wells that area eliminated). The sensitivity analysis would give insight into the reliability of the model, thinking of the eliminated monitoring wells and how I can minimize the RMSE of the model and MAE of the eliminated monitoring wells. What would be a suitable method for a SA in Python? I heard things about Monte Carlo and Sobol, but I'm not sure if those will fit in my Python script.
Many thanks in advance!
Dear Scientists and Researchers,
I'm thrilled to highlight a significant update from PeptiCloud: new no-code data analysis capabilities specifically designed for researchers. Now, at www.pepticloud.com, you can leverage these powerful tools to enhance your research without the need for coding expertise.
Key Features:
PeptiCloud's latest update lets you:
- Create Plots: Easily visualize your data for insightful analysis.
- Conduct Numerical Analysis: Analyze datasets with precision, no coding required.
- Utilize Advanced Models: Access regression models (linear, polynomial, logistic, lasso, ridge) and machine learning algorithms (KNN and SVM) through a straightforward interface.
The Impact:
This innovation aims to remove the technological hurdles of data analysis, enabling researchers to concentrate on their scientific discoveries. By minimizing the need for programming skills, PeptiCloud is paving the way for more accessible and efficient bioinformatics research.
Join the Conversation:
- How do you envision no-code data analysis transforming your research?
- Are there any other no-code features you would like to see on PeptiCloud?
- If you've used no-code platforms before, how have they impacted your research productivity?
PeptiCloud is dedicated to empowering the bioinformatics community. Your insights and feedback are invaluable to us as we strive to enhance our platform. Visit us at www.pepticloud.com to explore these new features, and don't hesitate to reach out at [email protected] with your thoughts, suggestions, or questions.
Together, let's embark on a journey towards more accessible and impactful research.
Warm regards,
Chris Lee
Bioinformatics Advocate & PeptiCloud Founder
I want to draw cassini oval parametrically with using analytical face option of cst.
I write python code below. If any one can help me ı will really appreciate.
import numpy as np
import matplotlib.pyplot as plt
def cassini_oval(x, y, x1, y1, x2, y2, a):
# Compute the Cassini oval equation
return np.sqrt((y - y1)**2 + (x - x1)**2) * np.sqrt((y - y2)**2 + (x - x2)**2) - a
# Parameters
x1 = -15.0 # x-coordinate of the first focus
y1 = 0.0 # y-coordinate of the first focus
x2 = -x1 # x-coordinate of the second focus
y2 = 0.0 # y-coordinate of the second focus
a = x1**2 # constant 'a' in the equation
# Generate points for plotting
x_range = np.linspace(-30, 30, 1000)
y_range = np.linspace(-30, 30, 1000)
X, Y = np.meshgrid(x_range, y_range)
Z = cassini_oval(X, Y, x1, y1, x2, y2, a)
# Plot Cassini oval
plt.figure()
plt.contour(X, Y, Z, levels=[0], colors='b')
plt.xlabel('x')
plt.ylabel('y')
plt.title('Cassini Oval')
plt.axis('equal')
plt.grid(True)
plt.show()
It is possible here that we suggest new topics that are suitable as research, master’s theses, or doctoral dissertations on the application of artificial intelligence or programming in the Python language on demographic topics or population geography.
RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.
res = hypotest_fun_out(*samples, **kwds)
Above warning occured in python. Firstly, the dataset was normalised and then while performing the t-test this warning appeared, though the output was displayed. Kindly suggest some methods to avoid this warning.
Please I have a question. Can someone help me ? I want to connect NetSim with Python, that's the error message: ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
I want to use Python for coding in NetSim, but the source code provided is only in C language, with some examples in Matlab. From where can I find and learn the same in python?
I request to share if you have any code or idea on computation of number of domination sets in a given graph using MATLAB OR PYTHON
Can someone help me with the PYTHON code for this Self-Exciting Threshold Autoregressive model (SETAR)?
Hi there, I am having an issue delineating the watershed. I am trying to load a .tif file and when I click 'create streams' I get the following error (attached). It's not a problem with QSwat+ software because I was able to follow tutorials online using the software, without issue. Any help would be greatly appreciated.
Edit: the error reads as follows:
*** Problem with TauDEM /Users/user/SWATPlus/TauDEM5Bin/pitremove -z /Users/user/Documents/Masters/Swat+/CGD Pre Harvest/Preharvest5/Preharvest/Watershed/Rasters/DEM/DEM_IRL_ITM.tif -fel /Users/user/Documents/Masters/Swat+/CGD Pre Harvest/Preharvest5/Preharvest/Watershed/Rasters/DEM/DEM_IRL_ITMfel.tif: please examine output above. ***
I have daily water level data for a river and the Reduced Level (RL) values for the cross-section as the y axis at every 3 m of the cross-section. How do I write a python program to calculate the cross-sectional area for daily water level where the water level data is to be taken automatically from the excel or CSV file. If anyone has done this type of thing, please help me.
#ComputerScience, #Python, #MATLAB, #AI, #AIML, #ML, #Research, #Medical, #HearDisease.
Inviting serious researchers into heart disease prediction before it reaches its peak level.
It has been found in various research papers that patients reach the hospital when the disease has reached its peak level; consulting doctors and experts before disease maturity is an advantage.
There are various technologies that can be discussed, including basic training, ideas, and problem-solving topics.
PARODY
In the New Yorker, Wolcott Gibbs wrote that parody is the hardest form of creative writing because the style of the subject must be reproduced in slightly enlarged form, while at the same time holding the interest of people who haven’t read the original. Further complications are posed since it must entertain at the same time that it criticizes and must be written in a style that is not the writer’s own. He concluded that the only thing that would make it more difficult would be to write it in Cantonese.
Obviously, it is easier for people to enjoy a parody if they know what the original was. In our increasingly diverse culture, memories of “classic” children’s books may be one of the few things we have in common. Advertisers, broadcasters, cartoonists, journalists, politicians, bloggers, and everyone else who wants to communicate with large numbers of people, therefore turn to the array of exaggerated characters that we remember from childhood books. Chicken Little represented alarmists; Pinocchio stood for liars; The Big Bad Wolf warned us of danger; Humpty Dumpty demonstrated how easy it is to fall from grace; The Frog Prince gave hope to women of all ages; and Judith Viorst’s The Terrible, Horrible, No Good, Very Bad Day lets us know that we all have really bad days.
Some of Lewis Carroll’s parodies were just for fun. When Lewis Carroll wrote a parody of the poem “Twinkle Twinkle, Little Star. How I wonder where you are,” it became, “Twinkle Twinkle, Little Bat. How I wonder where you’re at.” This is merely fun word play. But some of Carroll’s parodies had a deeper significance. Lewis Carroll lived in a time when the Victorian poetry tended to be filled with sentimentality and didacticism, so many of Carroll’s poems parodied that sentimentality and didacticism. G. W. Langford wrote a poem that not only preached to parents, but also reminded them of the high mortality rate for young children: “Speak gently to the little child! / It’s love be sure to gain; / Teach it in accents soft and mild; It may not long remain.” Carroll’s parody turned this poem into a song for the Duchess to sing to a piglet wrapped in baby clothes: “Speak roughly to your little boy. And beat him when he sneezes. / He only does it to annoy / Because he knows it teases.” The poem “Against Idleness and Mischief” by Isaac Watts read as follows: “How doth the little busy bee / Improve each shining hour / and gather honey all the day / From every opening flower!” Lewis Carroll’s parody is much more fun, and much less didactic: “How doth the little crocodile / Improve his shining tail / And pour the waters of the Nile / On every golden scale?”
Each of the adventures in Jonathan Swift’s Gulliver’s Travels is a satirical parody of exploration and expansion, but each is also a parody of British society and politics, especially the British society and politics that were in effect during Swift’s life time. Swift’s “A Modest Proposal for Preventing the Children of Ireland from being a Burden to their Parents or Country” was carefully structured to read like a proposal that would be seriously placed before the British House of Commons, and the various aspects of his proposal were in fact very similar to proposals that were at the time being placed before Parliament. Similarly, Mark Twain’s “War Prayer” had not only the form of a real prayer, but contained many of the expressions and clichés that could be found in prayers of the day. The “War Prayer” begins “Oh Lord our God, help us to tear their soldiers to bloody shreds with our shells…. Lord, blast their hopes, blight their lives, protract their bitter pilgrimage, and make heavy their steps,” and ends “We ask it in the spirit of love, of Him Who is the Source of Love, and Who is the ever-faithful refuge and friend of all that are sore beset and seek his aid. Amen.”
The reason that Edgar Alan Poe is so often parodied is that his poetic style is so distinct. Poe wrote a poem entitled “Bells” which reads as follows: “Hear the sledges with the bells— / Silver bells! / What a world of merriment their melody foretells! / How they tinkle, tinkle, tinkle, / In the Icy air of night! / While the stars that oversprinkle / All the heavens, seem to twinkle / With a crystalline delight….” An anonymous writer wrote the following parody of Poe’s “Bells”: “Hear the fluter with his flute, / Silver flute! / Oh, what a world of wailing is awakened by its toot! / How it demi-semi quavers / On the maddened air of night! / And defieth all endeavors / To escape the sound or sight / Of the flute, flute, flute, With its tootle, tootle, toot… / Of the flute, flewt, fluit, floot, Phlute, Phlewt, Phlewght, / And the tootle, tootle, tooting of its toot.” Poe’s “The Raven” is also often parodied, as is his “Annabel Lee.”
Some authors like Mel Brooks specialize in writing movie-script parodies. Brooks wrote “Blazing Saddles,” “Robin Hood, Men in Tights,” “Young Frankenstein,” and “The Producers.” The plot line of “The Producers” is that the producers heavily insure a play that they are sure will be a flop—but it is so bad that it is a great hit. One of the funniest scenes is when all of the various “Hitlers” are auditioning for the part with their stiff-legged marches, their Hitler mustaches, and their “Heil Hitler” salutes. Who says that there is a subject that is so horrific that it can’t be parodied and satirized? The Monty Python parodies are equally edgy. That group wrote and starred in “The Holy Grail,” “Meaning of Life,” and “The Life of Brian.” The final scene of this last movie shows Brian being crucified, and all of the people being crucified on all of their crosses are singing “Always think of the bright…side…of life. / Ta da, Ta da da da da da.”
Today we are surrounded by parodies, like Quentin Tarentino’s film Pulp Fiction, and Jeffrey Katzenberg’s Shrek, not to mention the “Scary” the “Airplane” movies, and all the rest. And then, there are fake news sources like Mad Magazine, National Lampoon, Harvard Lampoon, The Onion, Real Time with Bill Maher, The Colbert Report, and Jon Stewart’s “The Daily Show.” One humorist quipped “I get my news from “The Daily Show” and my humor from “Fox News.”
PARODY
In the New Yorker, Wolcott Gibbs wrote that parody is the hardest form of creative writing because the style of the subject must be reproduced in slightly enlarged form, while at the same time holding the interest of people who haven’t read the original. Further complications are posed since it must entertain at the same time that it criticizes and must be written in a style that is not the writer’s own. He concluded that the only thing that would make it more difficult would be to write it in Cantonese.
Obviously, it is easier for people to enjoy a parody if they know what the original was. In our increasingly diverse culture, memories of “classic” children’s books may be one of the few things we have in common. Advertisers, broadcasters, cartoonists, journalists, politicians, bloggers, and everyone else who wants to communicate with large numbers of people, therefore turn to the array of exaggerated characters that we remember from childhood books. Chicken Little represented alarmists; Pinocchio stood for liars; The Big Bad Wolf warned us of danger; Humpty Dumpty demonstrated how easy it is to fall from grace; The Frog Prince gave hope to women of all ages; and Judith Viorst’s The Terrible, Horrible, No Good, Very Bad Day lets us know that we all have really bad days.
Some of Lewis Carroll’s parodies were just for fun. When Lewis Carroll wrote a parody of the poem “Twinkle Twinkle, Little Star. How I wonder where you are,” it became, “Twinkle Twinkle, Little Bat. How I wonder where you’re at.” This is merely fun word play. But some of Carroll’s parodies had a deeper significance. Lewis Carroll lived in a time when the Victorian poetry tended to be filled with sentimentality and didacticism, so many of Carroll’s poems parodied that sentimentality and didacticism. G. W. Langford wrote a poem that not only preached to parents, but also reminded them of the high mortality rate for young children: “Speak gently to the little child! / It’s love be sure to gain; / Teach it in accents soft and mild; It may not long remain.” Carroll’s parody turned this poem into a song for the Duchess to sing to a piglet wrapped in baby clothes: “Speak roughly to your little boy. And beat him when he sneezes. / He only does it to annoy / Because he knows it teases.” The poem “Against Idleness and Mischief” by Isaac Watts read as follows: “How doth the little busy bee / Improve each shining hour / and gather honey all the day / From every opening flower!” Lewis Carroll’s parody is much more fun, and much less didactic: “How doth the little crocodile / Improve his shining tail / And pour the waters of the Nile / On every golden scale?”
Each of the adventures in Jonathan Swift’s Gulliver’s Travels is a satirical parody of exploration and expansion, but each is also a parody of British society and politics, especially the British society and politics that were in effect during Swift’s life time. Swift’s “A Modest Proposal for Preventing the Children of Ireland from being a Burden to their Parents or Country” was carefully structured to read like a proposal that would be seriously placed before the British House of Commons, and the various aspects of his proposal were in fact very similar to proposals that were at the time being placed before Parliament. Similarly, Mark Twain’s “War Prayer” had not only the form of a real prayer, but contained many of the expressions and clichés that could be found in prayers of the day. The “War Prayer” begins “Oh Lord our God, help us to tear their soldiers to bloody shreds with our shells…. Lord, blast their hopes, blight their lives, protract their bitter pilgrimage, and make heavy their steps,” and ends “We ask it in the spirit of love, of Him Who is the Source of Love, and Who is the ever-faithful refuge and friend of all that are sore beset and seek his aid. Amen.”
The reason that Edgar Alan Poe is so often parodied is that his poetic style is so distinct. Poe wrote a poem entitled “Bells” which reads as follows: “Hear the sledges with the bells— / Silver bells! / What a world of merriment their melody foretells! / How they tinkle, tinkle, tinkle, / In the Icy air of night! / While the stars that oversprinkle / All the heavens, seem to twinkle / With a crystalline delight….” An anonymous writer wrote the following parody of Poe’s “Bells”: “Hear the fluter with his flute, / Silver flute! / Oh, what a world of wailing is awakened by its toot! / How it demi-semi quavers / On the maddened air of night! / And defieth all endeavors / To escape the sound or sight / Of the flute, flute, flute, With its tootle, tootle, toot… / Of the flute, flewt, fluit, floot, Phlute, Phlewt, Phlewght, / And the tootle, tootle, tooting of its toot.” Poe’s “The Raven” is also often parodied, as is his “Annabel Lee.”
Some authors like Mel Brooks specialize in writing movie-script parodies. Brooks wrote “Blazing Saddles,” “Robin Hood, Men in Tights,” “Young Frankenstein,” and “The Producers.” The plot line of “The Producers” is that the producers heavily insure a play that they are sure will be a flop—but it is so bad that it is a great hit. One of the funniest scenes is when all of the various “Hitlers” are auditioning for the part with their stiff-legged marches, their Hitler mustaches, and their “Heil Hitler” salutes. Who says that there is a subject that is so horrific that it can’t be parodied and satirized? The Monty Python parodies are equally edgy. That group wrote and starred in “The Holy Grail,” “Meaning of Life,” and “The Life of Brian.” The final scene of this last movie shows Brian being crucified, and all of the people being crucified on all of their crosses are singing “Always think of the bright…side…of life. / Ta da, Ta da da da da da.”
Today we are surrounded by parodies, like Quentin Tarentino’s film Pulp Fiction, and Jeffrey Katzenberg’s Shrek, not to mention the “Scary” the “Airplane” movies, and all the rest. And then, there are fake news sources like Mad Magazine, National Lampoon, Harvard Lampoon, The Onion, Real Time with Bill Maher, The Colbert Report, and Jon Stewart’s “The Daily Show.” One humorist quipped “I get my news from “The Daily Show” and my humor from “Fox News.”
I wonder if is it possible to adjust the number of lanes or link lengths of a road network in the PTV VISSIM during the simulation process.
For example, if the VISSIM simulation lasts for 24 hours, can the number of lanes change every hour through the COM development?
Hello everyone! I want to learn python programming language for conducting exploratory analysis of the Skytrax reviews about airlines. Can anyone guide me which website or platform is the best for the python learning, as the different platforms have been making it time consuming and complicated to learn it quickly?
I'm looking for a Spine Reconstruction tool identifying vertebra from a CT image pile.
I just need to know where the anterior bodies are, and what are the bodies planes orientations (sup and inf ).
Ideally it should cope with ribs, sternum and pelvis bone artefacts.
Should be able to be mostly effective from T10 to S1 including ageing artefacts like osteophytis.
I'm using autodock vina in Python to dock multiple proteins and ligands, but I'm having trouble setting the docking parameters for each protein. How can I do this in Python? (I have attached my py code which I have done in this I have assumed this parameters same for all proteins)
I am trying to train a CNN model in Matlab to predict the mean value of a random vector (the Matlab code named Test_2 is attached). To further clarify, I am generating a random vector with 10 components (using rand function) for 500 times. Correspondingly, the figure of each vector versus 1:10 is plotted and saved separately. Moreover, the mean value of each of the 500 randomly generated vectors are calculated and saved. Thereafter, the saved images are used as the input file (X) for training (70%), validating (15%) and testing (15%) a CNN model which is supposed to predict the mean value of the mentioned random vectors (Y). However, the RMSE of the model becomes too high. In other words, the model is not trained despite changing its options and parameters. I would be grateful if anyone could kindly advise.
Hello everyone! I'm very fresher now, like super fresher. I don't know how to research! Even how can I start researching! But I want to research!!
I have a very little idea about python programming language.
Hi i have estimated an armax model using python sippy library. The estimation gives me two transfer functions H and G. How can I combine them into a single one to predict model output for new input u(t)or to compute unit step response? I thought to somehow derive state space representation maybe...
I want to create a surface for all element faces, it can be done manually, but how can I achieve it in a script?
Good afternoon,
I am using AutoDock4 and I am trying to do the grid and this erro keeps appearing in the Pynthon Controler: swig/python detected a memory leak of type 'BHtree *', no destructor found.
How can I solve it?
I am working with a time series dataset using the `fable` package (R). I have fitted several models (e.g., ARIMA) and generated forecasts. The accuracy calculation is resulting in NaN values, and the warning suggests incomplete out-of-sample data.
I am seeking guidance on how to handle this incomplete out-of-sample data issue and successfully calculate accuracy metrics for my time series forecasts. If anyone has encountered a similar problem or has expertise in time series analysis with R, your insights would be greatly appreciated.
Hi guys!
I am currently in my 4th semester (2nd year ending). Due to my negligence I did not plan my future but I would like at least start now. please help me build my resume for the campus interviews.
I am learning python and Java languages at present. And I know the basics of C language . I was suggested to be familiar to Unix operating system. If you have any suggestions for for what to learn or where to join for any experience please let me know.
Guys, good night. I need to use a comparative genomics tool that demonstrates synteny between three species of a genus. But I would like something more visual. I've already used mauve, I don't want circos as it's too complex for my level of bioinformatics. So I wanted some software recommendations or tools that could be run by Ubuntu programs (perl, python, java), and be easier to use. Thank you if anyone can help.
Hello,
I am a civil engineering graduate, interested in research on transportation with application of machine learning or deep learning. My skillsets include GIS, Python and transportation modelling. I am open to learn any new skills required. Let's collaborate and work in some interesting research.
Thank you,
Regards,
Subash Gupta
I am looking for a pythonic solution of
A solution with Julia is available at
Seeking insights on the most effective Python libraries for visualizing data.
Python, Matlab, Power system optimisation
Hello
I am trying to calculate the saturation magnetization of CoNiFe at certain temperature and composition and I am using TC-Python to get the data of effective bohr magneton number of the alloy. However, I am not sure if I am doing correctly. I used the code below to do that but I got very high numbers like 50-60. I was expecting around 2.5(max) and 0(min). Could you please help me?
Bohr_magneton = calc_result.get_value_of("BM")
Hello! I hope you are doing well I am currently pursuing an understanding of COGNITIVE RADIO. I want to simulate spectrum sensing. Please, I would appreciate it if you sent matlab or python codes for spectrum sensing in cognitive radio or any useful information on that.
I have a student-teacher network for a self-supervised learning network. Basically, my teacher network predicts classes and calculates the loss and updates its parameters using the gradient flow. Typically, the student network updates its parameters using the moving average of teacher network. But in my case, i have some unique layers for the student network that are needed to train using gradient flow. For instance, as the figure shows, there is a unique layer (layer X) in the student network, and rest are common for both networks. The layer 1 layer 2 and layer 3 in the student network need to be updated with the moving average of teacher network and the layer x needs to be updated with gradient flow. How do I design such a network using Python torch DDP.
Hi, I used material studio and biuld selnium nanoparticle. I used autodock and dock nanoparticle with hsa . when input ligand I recieved this error.
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
****************************************************************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
****************************************************************
IDLE 1.2.2 ==== No Subprocess ====
>>> adding gasteiger charges to receptor
NanoSe3: :MOL2:Se and NanoSe3: :MOL2:Se have the same coordinates
ERROR *********************************************
Traceback (most recent call last):
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\ViewerFramework\VF.py", line 898, in tryto
result = command( *args, **kw )
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\autotorsCommands.py", line 1008, in doit
initLPO4(mol, cleanup=cleanup)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\autotorsCommands.py", line 292, in initLPO4
root=root, outputfilename=outputfilename, cleanup=cleanup)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 1019, in __init__
detect_bonds_between_cycles=detect_bonds_between_cycles)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 768, in __init__
delete_single_nonstd_residues=False)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 143, in __init__
self.addCharges(mol, charges_to_add)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\AutoDockTools\MoleculePreparation.py", line 229, in addCharges
chargeCalculator.addCharges(mol.allAtoms)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\MolKit\chargeCalculator.py", line 80, in addCharges
babel.assignHybridization(atoms)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\PyBabel\atomTypes.py", line 137, in assignHybridization
self.valence_two()
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\PyBabel\atomTypes.py", line 266, in valence_two
angle1 = bond_angle(k.coords, a.coords, l.coords)
File "C:\Program Files (x86)\MGLTools-1.5.6\lib\site-packages\PyBabel\util.py", line 47, in bond_angle
raise ZeroDivisionError("Input used:", a, b, c)
ZeroDivisionError: ('Input used:', [-3.7719999999999998, -9.9429999999999996, -5.774], [-3.7719999999999998, -9.9429999999999996, -5.774], [-3.7719999999999998, -9.9429999999999996, -5.774])
Hello folks, I am trying to install genice2 software.Even after satisfying the per-reqistics and installing completely when i try to run it the error i am getting is " cell: np.ndarray[3, 3] = None,
TypeError: Type subscription requires python >= 3.9"
Can someone tell what to do know? How to resolve this error ?
Suppose, we need to solve 1D heat conduction equation numerically to simulate the heat transfer for a steel rod where convection occurs at its surface. Now, how to solve the 1D heat conduction equation considering the convection scenario also as boundary conditions? any suggestion or resources?
Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
Running Linux ubuntu in windows 11 using WSL
I have anaconda3 installed
I'm running the covalent docking tutorial for autodock vina available from:
When i run the prepareCovalent.py script I get the following:
Input:
(vina) gorrie06@DMGLaptop:~/docking/covalent$ python ~/docking/covalent/adcovalent/prepareCovalent.py --ligand /3upo_test/ligand.mol2 --ligindices 1,2 --receptor /3upo_test/3upo_protein.pdb --residue B:SER222 --outputfile ligcov.pdb
Output:
Traceback (most recent call last):
File "/home/gorrie06/docking/covalent/adcovalent/prepareCovalent.py", line 36, in <module>
import pybel
File "/home/gorrie06/anaconda3/envs/vina/lib/python2.7/site-packages/pybel.py", line 89, in <module>
informats = _formatstodict(_obconv.GetSupportedInputFormat())
File "/home/gorrie06/anaconda3/envs/vina/lib/python2.7/site-packages/pybel.py", line 68, in _formatstodict
broken = [(x, y.strip()) for x, y in broken]
ValueError: need more than 1 value to unpack
This is the function that is being referred to by the output (from pybel.py):
def _formatstodict(list):
if sys.platform[:4] == "java":
list = [list.get(i) for i in range(list.size())]
broken = [x.replace("[Read-only]", "").replace("[Write-only]", "").split(
" -- ") for x in list]
broken = [(x, y.strip()) for x, y in broken]
return dict(broken)
I have been able to modify pybel.py to prevent error but then the script prepareCovalent.py fails to read the pdb file.
Any help is greatly appreciated!
Thank you!
I need a sample code for disease modelling optimal control using python program to understand how the code works.
Thank you and God Bless us all
I want to run python codes on the current variables of Stata using PyStata. For example:
- set obs 5
- gen a = _n
- python
- a
- end
But python does not recognize "a". Instead I should run:
- python
- a = [1, 2, 3, 4, 5]
- a
- end
How can I use the existed "a" instead of new coding?
Hi there. I want to resample all Sentinel-2 bands to 10 meters. I know snappy has several methods for this, but I was wondering what approaches or packages in python outside of Snappy do you think are the best.
Hello dear, I request you all please guide me how to resolve this issue.
I dual booted my pc and created the ubuntu and windows as separate OS. Thereafter followed the guidelines and installed the Desmond (Desmond_Maestro_2023.2) in Linux OS but I encountered with the problem.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: linuxfb, minimal, offscreen, vkkhrdisplay, vnc, xcb.
Fatal Python error: Aborted
I request you all please guide me how to resolve this issue.
How to integrate Cupcarbon and Sumo to implement Iot-aware neurofuzzy-based traffic control system? I am working on the implementation of my research. I need the best approach to do the above . I need the best programming choice python or matlab or java
I've tried multiple times without success to call my EES code from Python, passing inputs and handling the output. Utilizing the EES Connector from this link (https://pypi.org/project/EES-connector/), I followed the instructions meticulously. Despite successfully applying entries, the issue persists, and the expected values are not returned.
here is the codes I wrote:
======================================
Python code:
------------------------------------------------------
from EESConnect import EESConnector
from tkinter import filedialog
import tkinter as tk
#select the ees file path
root = tk.Tk()
root.withdraw()
ees_file_path = filedialog.askopenfilename()
with EESConnector() as ees:
ees.ees_file_path = ees_file_path
result = ees.calculate(["air_ha", 383, 101.325])
print(result[1])
======================================
EES code:
------------------------------------------------------
$UnitSystem SI K kPa kJ
$Import 'ees_input.dat' file$ F$ T P
h=enthalpy(F$, T=T, P=P)
s=entropy(F$, T=T, P=P)
$Export 'ees_output.dat' file$ h s
======================================
Thank you in advance for your response.
I want to know how effective this course for researchers with non-computer science background working with thermal engineering problems.
Hello together,
Transmission and Reflection Free-Space Method have been used to get S-parameters of our MUT. As a next step we used scikit-rf for time-domain analysis and gating.
Is there a free available Python or Matlab algorithm (NRW?) to extract relative permittivity taking into account the Free Space Measurement Method?
Thanks in advance.
While docking using AutodockTools 1.5.7, this msg pops up in the command prompt while inserting protein, but grid parameter files and the binding affinity results are perfectly generated. Is it ok to continue docking with other ligands while this error(swig/python detected a memory leak of type 'bhtree *', no destructor found) shows up?
I have downloaded 5 years daily precipitation data of MSWEP, but i havent succeded in subsetting it for Indonesia region and make pandas dataframe of it using python. Please advise?
Mapsim can extract the system equation. I want to develop a tool in Python or MATLAB to automatically derive the system equation for mechanical mechanisms, such as linkage mechanisms. Is there any open source available for reference?
I am using the open-source Python package, pygfunction, to model a BTES system to meet heating demands in a district heating network. Apart from obtaining fluid temperature profiles inside the borehole and inlet/outlet temperatures, I am interested in investigating the development of temperature outside the bore field in the surrounding soil.
We have the ECLIPSE executable that we can call, there is an ECLIPSE input text file called input.DATA which includes well location in x and y directions. optimizer should change the x and y locations of the wells each time and then simulations need to be automatically submitted by PYTHON for the specified number of times and gives the field production values each time. we want to maximize the output: Cumulative Oil Production which exists in the output file.
then we will find the best configuration of wells in the field that maximizes the cumulative oil production.
I appreciate your help.
thanks.
Dear all,
thank you for considering this question. Do you know any reason why Daubechies wavelet can't be used for CWT ? Matlab toolbox and Python packages don't allow for such transform, and I was wondering about theoritical rational here. Thank you
Hi everyone
i would like know , how i can add module (openpyxl: module for read or write excel file ) in python for script on Abaqus ( i use python 2.7 version for abaqus 6.14)
thanks
I would like to simulate a congestion scenario using SUMO-TraCi interface. I was able to create the network layout and a few cars. How to generate an increasing number of vehicles moving at different speeds? How to extract the average speed from SUMO to use in python to plot the results?
Hi folks!
Let's say that I have two lists / vectors "t_list" and "y_list" representing the relationship y(t). I also have numerically computed dy/dt and stored it into "dy_dt_list".
The problem is that "dy_dt_list" contains a lot of fluctuations, and that I know that it MONOTONOUSLY DECREASES out of a physical theory.
1) Is there is a simple way in R or Python to carry out a spline regression that reproduces the numerical values of dy/dt(t) in "dy_dt_list" as best it can UNDER THE CONSTRAINT that it keeps decreasing? I thus want to get a monotonously decreasing (dy/dt)_spline as the output.
2) Is there is a simple way in R or Python to carry out a spline regression that reproduces the numerical values of y(t) as best it can UNDER THE CONSTRAINT that (dy/dt)spline keeps decreasing? I thus want to get y_spline as the output, given that the above constraint is fulfilled.
I'd like to avoid having to reinvent the wheel!
P.S: I added an example to clarify things!
Currently, I have a global variable array and I can also plot it in the calibration window but I want to plot each data sample by a delay of 2.5 mili Seconds which means after one data sample next should be plotted after 2.5 mili Seconds.
and is it possible to do so in CANape Only without external software such as MATLAB-Simulink or Python etc...
Need help with an unsupervised deep image stacking project. Image stacking is a commonly used technique in astrophotography and other areas to improve the signal-to-noise ratio of images. The process works by first aligning a large number of short exposure images and then averaging them which reduces the noise variance of individual pixels. I have to do this process with neural networks by predicting a distortion field for each image and using a consistency objective that tries to maximize the coherence between the undistorted images in the stack and the final output. I need some learning materials for performing image stacking preferably in python and make a neural network. I already have experiences with training object classification and detection models and have worked on different YOLO models.
Hello everyone,
Can anyone provide me with some ideas or any code for how to find a 95% confidence level plot it over a spatial plot using Python? Provided the data is in netcdf format.
I want to cluster multiple pdb files with respect to one reference pdb. I have to use Align > all this to *Ca in Pymol. However, how could i do this via scripting in Pymol? As I have multiple sets of pdb files with their own reference pdb files. Is it possible to do the same in Python via Jupyter Notebook in Pymol?
Hello,
I have performed MM-PBSA calculation of a protein-ligand complex. I utilised approx 750 frames (out of a total of 15000 frames) to compute the free enrgy change of binding. Then, I used a python code to compute ACF of the total delta G binding. But, the obtained ACF plot is not showing exponential decay feature exactly. I am not able to figure it out. I am attaching my plot here.
Any suggestions would be highly appreciated.
I'm trying to generate ligand topology files through CHARMM FF but i'm getting this error. I installed the respective python version but error is still same
python cgenff_charmm2gmx.py UNK unk_fix.mol2 unk.str charmm36-jul2022.ff
You are using a Python version in the 2.x series. This script requires Python 3.0 or higher.
Please visit http://mackerell.umaryland.edu/charmm_ff.shtml#gromacs to get a script for Python 3.x
Kindly help
I have to use Orbbec Femto Mega for the motion tracking applications, but I cannot find proper documentation regarding the camera interface with Python or C++. If somebody can give me an idea of where I can get the documentation or which libraries I can use, it would be great. I already tried OpenNI but it's not recognizing the camera.
Hello, I'm new in the Markov Switching autoregressive model. I need some help with implementing the MSIH-AR model in Python. This model requires introducing regime state variables into the intercept and error terms of the equation, as well as the heteroscedasticity in the error term. However, the statsmodels.api.tsa.MarkovAutoregression object in Python uses the mean form(i.e., the deviation form) of the equation to implement the MS-AR model (i.e., the MSM-AR model) by default. This makes me very confused. How can I use statsmodels.api.tsa.MarkovAutoregression to implement the MSIH-AR model? Thank you for your kind assistance. If possible, please also tell me how to implement MSIH-AR model using either Matlab, r, or EViews.
Dear Expert,
My question is, is there any way to call or couple the code file (Matlab or Python) in the fluent simulation? if yes please let me know the what is procedure and steps.
I created an ann model based on the weight and bias function and I want to know how can i couple or add directly this file to the fluent just like the UDF function of one property or function.
I am working on a research project involving a system of differential equations with one ordinary differential equation (ODE) and two partial differential equations (PDEs).
I would like to discuss methods and approaches for solving this system efficiently using Numerical method and Machine Learning.
Can you recommend Python/Matlab code for using numerical techniques and ML
Any guidance or references would be greatly appreciated.
I have a netCDF4 (.nc) file having ocean SST data, with coordinates (lat, lon, time). I want to predict and plot maps for the future. How can I do this using python?
Please recommend a python code for time series forecasting based on this approach.