Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: How to change input data set for character recognition program?
Post: RE: How to change input data set for character rec...
(Apr-17-2022, 12:21 PM)jefsummers Wrote: Add commas.
When you define your train_images (and the others) it should be like
train_images=((1,1,0,0,1),
(0,0,1,1,1),
(1,1,0,1... |
|
plumberpy |
Data Science |
5 |
1,656 |
Apr-19-2022, 10:50 AM |
|
|
Thread: How to change input data set for character recognition program?
Post: RE: How to change input data set for character rec...
I have made some changes to try out the program with my data. See below. Ignore the one above.
# from keras.datasets import mnist
# (train_images, train_labels), (test_images, test_labels) = mnist.lo... |
|
plumberpy |
Data Science |
5 |
1,656 |
Apr-12-2022, 11:17 AM |
|
|
Thread: How to change input data set for character recognition program?
Post: How to change input data set for character recogni...
I am new to Python and machine learning. Trying to learn by working on tested examples. Tried the character recognition program (from Chollet) using MNIST data set, later tried to change the input dat... |
|
plumberpy |
Data Science |
5 |
1,656 |
Apr-12-2022, 03:03 AM |
|
|
Thread: How to create 2 dimensional variables in Python?
Post: RE: How to create 2 dimensional variables in Pytho...
(Mar-30-2022, 02:41 PM)jefsummers Wrote: Not sure I understand the question, but you give it the indexes and it gives you the value
tracker1[25,26] += 1
Thanks.
Maybe better for me to illustrate wh... |
|
plumberpy |
General Coding Help |
5 |
1,791 |
Mar-31-2022, 03:15 AM |
|
|
Thread: How to create 2 dimensional variables in Python?
Post: RE: How to create 2 dimensional variables in Pytho...
(Mar-30-2022, 11:09 AM)Larz60+ Wrote: Please provide a small, sample of abc.csv, large enough and complete enough to be able to run your snippet.
Thanks. The csv file as requested. (Mar-30-2022, 11:... |
|
plumberpy |
General Coding Help |
5 |
1,791 |
Mar-30-2022, 11:44 AM |
|
|
Thread: How to create 2 dimensional variables in Python?
Post: How to create 2 dimensional variables in Python?
import time
import pandas
df = pandas.read_csv('abc.csv')
start = time.time()
i = 0
ii = 0
for ii in range(1, 25):
for i in range(1419, 2060):
if df.iloc[i + ii, 2] == df.iloc[i, 3] or ... |
|
plumberpy |
General Coding Help |
5 |
1,791 |
Mar-30-2022, 08:22 AM |
|
|
Thread: How to compile this graphing program to an exe file?
Post: RE: How to compile this graphing program to an exe...
Appreciate feedback from those who have compiled a graphing program into an exe successfully.
Like to know which package (matplotlib, bokeh etc), version and the compiler name (if not pyinstaller) an... |
|
plumberpy |
GUI |
7 |
3,769 |
Dec-07-2021, 10:36 AM |
|
|
Thread: How to compile this graphing program to an exe file?
Post: RE: How to compile this graphing program to an exe...
(Dec-05-2021, 08:41 PM)Larz60+ Wrote: The code you show runs for me (linux):
*** Using an interpreter or as an exe file? I can run it in Pycharm but cannot compile it as an exe using pyinstaller.
... |
|
plumberpy |
GUI |
7 |
3,769 |
Dec-06-2021, 03:59 AM |
|
|
Thread: How to compile this graphing program to an exe file?
Post: RE: How to compile this graphing program to an exe...
(Dec-05-2021, 08:41 PM)Larz60+ Wrote: The code you show runs for me (linux):
Output:$ python src/Dec_5_2021_1.pytry from command window (start virtual environment first if using one)
try pip list o... |
|
plumberpy |
GUI |
7 |
3,769 |
Dec-06-2021, 03:23 AM |
|
|
Thread: How to compile this graphing program to an exe file?
Post: RE: How to compile this graphing program to an exe...
Tried bokeh instead of matlibplot. Runs ok in the IDE. But cannot compile it as an exe. Same error messages.
Read that plot and ggplot use matlibplot and thus no point in trying them.
Does bokeh al... |
|
plumberpy |
GUI |
7 |
3,769 |
Dec-05-2021, 10:16 AM |
|
|
Thread: How to compile this graphing program to an exe file?
Post: RE: How to compile this graphing program to an exe...
(Dec-04-2021, 10:48 PM)Larz60+ Wrote: Please show entire unmodified error traceback as it contains important debugging info.Thanks. Please see below.
Error:PS C:\Users\adam\PycharmProjects\alpha>... |
|
plumberpy |
GUI |
7 |
3,769 |
Dec-05-2021, 02:42 AM |
|
|
Thread: How to compile this graphing program to an exe file?
Post: How to compile this graphing program to an exe fil...
import matplotlib.pyplot as plt
x = [1, 2, 3]
y = [2, 4, 1]
plt.xlabel('x - axis')
plt.ylabel('y - axis')
plt.title('My first graph!')
plt.scatter(x, y, label= "stars", color= "green", marker= "*", ... |
|
plumberpy |
GUI |
7 |
3,769 |
Dec-04-2021, 10:15 AM |
|
|
Thread: Program to move a dot towards a circle center
Post: RE: Program to move a dot towards a circle center
(Dec-01-2021, 05:45 PM)BashBedlam Wrote: Okay... In this version, when the dot reaches the middle, we usebreakto fall through the firstwhileloop. After that we print to the screen and wait for the u... |
|
plumberpy |
General Coding Help |
10 |
4,060 |
Dec-03-2021, 07:06 AM |
|
|
Thread: Program to move a dot towards a circle center
Post: RE: Program to move a dot towards a circle center
(Dec-01-2021, 05:38 AM)deanhystad Wrote: Is your code like this?
time.Clock ().tick (100)
display.update ()
print("I am here")Or like this?
time.Clock ().tick (100)
display.updat... |
|
plumberpy |
General Coding Help |
10 |
4,060 |
Dec-01-2021, 08:44 AM |
|
|
Thread: Program to move a dot towards a circle center
Post: RE: Program to move a dot towards a circle center
(Nov-21-2021, 03:06 PM)BashBedlam Wrote: Here is a very basic script using pygame:
from pygame import display, QUIT, event, draw, time
SCREEN = display.set_mode ((500, 500))
dot_x_position = 30
w... |
|
plumberpy |
General Coding Help |
10 |
4,060 |
Dec-01-2021, 04:32 AM |
|
|
Thread: Creating a python exe (win) to run on Mac
Post: RE: Creating a python exe (win) to run on Mac
|
plumberpy |
General Coding Help |
3 |
4,259 |
Dec-01-2021, 01:41 AM |
|
|
Thread: Creating a python exe (win) to run on Mac
Post: Creating a python exe (win) to run on Mac
I created an exe using pyinstaller but my friend cannot run it on his mac.
A. Any tricks I can use to run that exe on a mac?
B. How to compile an exe in pyinstaller to run on a mac?
Many thanks. |
|
plumberpy |
General Coding Help |
3 |
4,259 |
Nov-30-2021, 07:28 AM |
|
|
Thread: 2 or more data to be written in a row
Post: 2 or more data to be written in a row
A. I am using f.write(str(data1)) to save some data but I am limited to just 1 data per row. How can I save data1, data2, data3, ... in a row?
B. Any other way to save numeric data without having t... |
|
plumberpy |
General Coding Help |
2 |
1,451 |
Nov-25-2021, 04:50 AM |
|
|
Thread: Program to move a dot towards a circle center
Post: RE: Program to move a dot towards a circle center
(Nov-21-2021, 03:06 PM)BashBedlam Wrote: Here is a very basic script using pygame:
from pygame import display, QUIT, event, draw, time
SCREEN = display.set_mode ((500, 500))
dot_x_position = 30
w... |
|
plumberpy |
General Coding Help |
10 |
4,060 |
Nov-23-2021, 10:49 AM |
|
|
Thread: Program to move a dot towards a circle center
Post: RE: Program to move a dot towards a circle center
(Nov-21-2021, 03:02 PM)deanhystad Wrote: Is this a game? Does a user somehow control the dot, or is it a status display? If a game, how does the user control the dot?Not as a game. User does not c... |
|
plumberpy |
General Coding Help |
10 |
4,060 |
Nov-23-2021, 10:47 AM |