Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Installing python packages in a virtual environment
Post: Installing python packages in a virtual environmen...
I will ask question again since I did not see it post.
1. I create a virtual environment.
2. I installed some packages by command line. pip install python 3.7
3. I then install jupyter notebook in... |
|
Led_Zeppelin |
General Coding Help |
1 |
763 |
Aug-15-2023, 06:30 PM |
|
|
Thread: A class of machine learning programs
Post: A class of machine learning programs
There are several machine learning programs that will analyze a large amount of data. and try many models during a run. Each model has its accuracy printed. Then the analyst will get a good idea of w... |
|
Led_Zeppelin |
General Coding Help |
0 |
486 |
Jul-13-2023, 01:17 PM |
|
|
Thread: What module is missing?
Post: What module is missing?
I am getting thee error as shown in the following attachment. It says normal not found. I guess I am missing a library/module.
So, what module should I import for this?
Any help appreciated. Thanks, ... |
|
Led_Zeppelin |
General Coding Help |
2 |
878 |
Apr-12-2023, 04:21 PM |
|
|
Thread: What is the Target value in this GridSearchCV problem?
Post: What is the Target value in this GridSearchCV prob...
I have a question on the following document where I will now post its link.
https://becominghuman.ai/predict-pump-fa...886bfa073e
I am unable to attach this document to my post because it is too lar... |
|
Led_Zeppelin |
General Coding Help |
0 |
660 |
Feb-15-2023, 07:32 PM |
|
|
Thread: What are these python lines for? What are tey doing?
Post: RE: What are these python lines for? What are tey ...
Okay this dataframe has a header. It is obviously not us in numerical calculations. What line of code deletes or ignores it?
Respectfully,
James M. Yunker |
|
Led_Zeppelin |
General Coding Help |
7 |
1,616 |
Feb-13-2023, 01:17 PM |
|
|
Thread: What are these python lines for? What are tey doing?
Post: RE: What are these python lines for? What are tey ...
Now what at second. You are correct, but I think that you read my question incorrectly. I meant the total pace between the brackets,
not the space that you referred to. The total space between these [... |
|
Led_Zeppelin |
General Coding Help |
7 |
1,616 |
Feb-12-2023, 10:38 PM |
|
|
Thread: What are these python lines for? What are tey doing?
Post: RE: What are these python lines for? What are tey ...
I noticed that there is more space inside the bracket in in line 15 than in line 16. Why is that?
Respectfully,
Led_Zeppelin |
|
Led_Zeppelin |
General Coding Help |
7 |
1,616 |
Feb-10-2023, 06:43 PM |
|
|
Thread: What are these python lines for? What are tey doing?
Post: What are these python lines for? What are tey doin...
In the following code I need to know exactly what the two lines of code are doing:
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import numpy as np
import pandas as pd
# In[2]:
data = pd.read... |
|
Led_Zeppelin |
General Coding Help |
7 |
1,616 |
Feb-08-2023, 06:34 PM |
|
|
Thread: What is this error?
Post: What is this error?
In the following code there is an error as shown:
# Set the data
data = dax
# Extract the feature names and importance values
feature_names = range(0,51)
importances = data[0]
# Plot the data
plt.... |
|
Led_Zeppelin |
General Coding Help |
1 |
744 |
Feb-03-2023, 02:25 PM |
|
|
Thread: What is the cause of this error?
Post: RE: What is the cause of this error?
You are correct. But RandomizedSearchSercgCV must have had that argument at one of its earlier versions because I see a lot of legacy code with that argument. Actually, I see some legacy code. It was ... |
|
Led_Zeppelin |
General Coding Help |
3 |
941 |
Jan-30-2023, 01:54 PM |
|
|
Thread: What is the cause of this error?
Post: What is the cause of this error?
The following code generates an error as shown:
# random search logistic regression model on the sonar dataset
from scipy.stats import loguniform
from pandas import read_csv
from sklearn.linear_model... |
|
Led_Zeppelin |
General Coding Help |
3 |
941 |
Jan-29-2023, 08:17 PM |
|
|
Thread: Change a numpy array to a dataframe
Post: RE: Change a numpy array to a dataframe
I am doing it for consistency. At first, I tried to just use
convert to csv. I got the error you see. It is not a dataframe the command fails.
The solution-change to a dataframe. That seem simple and... |
|
Led_Zeppelin |
General Coding Help |
3 |
1,114 |
Jan-26-2023, 07:10 PM |
|
|
Thread: Change a numpy array to a dataframe
Post: Change a numpy array to a dataframe
As anyone can see from the attached screenshot after I scaled a dataframe, it is now a numpyndarray. That would make it hard to save. SO how do I conveit ot a datframe?
The attachment is a screenshot... |
|
Led_Zeppelin |
General Coding Help |
3 |
1,114 |
Jan-26-2023, 06:34 PM |
|
|
Thread: Adding a subroutine to a larger program
Post: RE: Adding a subroutine to a larger program
I thought of modifying the code that I posted. to something like this:
import pandas as pd
import matplotlib.pyplot as plt
# Load the data
data = ext.sort.values(['extratrees'], ascending=True)
# ... |
|
Led_Zeppelin |
General Coding Help |
2 |
912 |
Jan-18-2023, 05:44 PM |
|
|
Thread: Adding a subroutine to a larger program
Post: Adding a subroutine to a larger program
The following program was written by me. I wanted to plot feature importance against sensor number on a two-dimensional plot. The X axis has the sensor number, and the Y axis has feature importances. ... |
|
Led_Zeppelin |
General Coding Help |
2 |
912 |
Jan-18-2023, 03:37 PM |
|
|
Thread: [split] Explain the python code in this definition
Post: [split] Explain the python code in this definition
I have a vector of real numbers. They are the feature importance in a machine learning experiment. One importance for each sensor.
Obviously, they must add up to 1.
I know how to put the title to a ... |
|
Led_Zeppelin |
General Coding Help |
1 |
742 |
Jan-12-2023, 09:07 PM |
|
|
Thread: [split] Explain the python code in this definition
Post: RE: Explain the python code in this definition
Okay, I got this. I saw now how to post a new thread. Sorry about the trouble.
Led_Zepplin |
|
Led_Zeppelin |
Board |
2 |
2,513 |
Jan-12-2023, 08:57 PM |
|
|
Thread: [split] Explain the python code in this definition
Post: [split] Explain the python code in this definition
I am sorry to bother anyone for this, but I am stuck. I have to make a new post. I do not remember how to do it.
I have not used the forum since last October 27 of last year.
The only way I can comm... |
|
Led_Zeppelin |
Board |
2 |
2,513 |
Jan-12-2023, 08:54 PM |
|
|
Thread: Explain the python code in this definition
Post: Explain the python code in this definition
I found the following python o online and it looks very useful to me.
def get_mean_features(sensor_list, df):
"""
Function to get mean val of 10min window
"""
new_features = {}
... |
|
Led_Zeppelin |
General Coding Help |
1 |
1,096 |
Oct-26-2022, 08:32 PM |
|
|
Thread: Def error
Post: Def error
The following function (method):
def get_cv_heatmap(validation):
"""
Function to plot heat map of cross validation results
"""
# refernce: https://stackoverflow.com/questions/48791/how ... |
|
Led_Zeppelin |
General Coding Help |
2 |
940 |
Oct-20-2022, 11:44 AM |