code to initialize a sequence

2021-08-29 Thread joseph pareti
('-') print(C) print(type(C)) print('-') print(D) print(type(D)) Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org

Re: question on trax

2021-08-18 Thread joseph pareti
yes, but I do not see Fn anywhere. Another question is on this line: z = add((x, y)) If I code: z = add(x, y) Then the following exception occurs : *Expected input to be a tuple or list; instead got .* Am Di., 17. Aug. 2021 um 19:21 Uhr schrieb MRAB : > On 2021-08-17 16:50, joseph par

question on trax

2021-08-17 Thread joseph pareti
("expected inputs :", add.n_in) print("promised outputs :", add.n_out, "\n") # Inputs x = np.array([3]) y = np.array([4]) print("-- Inputs --") print("x :", x, "\n") print("y :", y, "\n") # Outputs z = add((x, y))

Re: [Errno 2] No such file or directory:

2021-07-29 Thread joseph pareti
indeed. There are better options than the one I attempted. Thanks for the advice Am Mi., 28. Juli 2021 um 18:19 Uhr schrieb Chris Angelico : > On Thu, Jul 29, 2021 at 2:10 AM joseph pareti > wrote: > > > > The following code fails as shown in the title: > > > &g

[Errno 2] No such file or directory:

2021-07-28 Thread joseph pareti
[Errno 2] No such file or directory: 'ls -l /media/joepareti54/Elements/x/finance-2020/AI/Listen_attend_spell/VCTK-Corpus/wav48 | awk "{print $9 -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49

Re: Posting code on stackoverflow

2021-06-06 Thread joseph pareti
ong lines > of code, I need to learn a) how to enter code if it's not just clicking on > the 'code' box before pasting text and b) how to keep code lines from > wrapping so a horizontal scroll bar is made available. > > TIA, > > Rich > -- > https://mail.python.org/mailm

Re: How do you debug in Python? Coming from a Matlab and R user. I'm already aware of pdb.

2021-01-26 Thread joseph pareti
oyee['name']) > > > > return PERSONDatabase(employee['created_at'], > > employee['id'], > > employee['name'], > > employee['attend_date'], > >

Re: dictionaries an matrices

2020-09-16 Thread joseph pareti
i can to create a dictionary with two matrices, > where every element of the first matrix corresponds to dictionary's keys > and the elements of the second matrix will be the values every key. > thanks > -- > https://mail.python.org/mailman/listinfo/python-list > -- Rega

i don't understand this python class

2020-06-29 Thread joseph pareti
*):* *print**(*'vehicle is '*,*self*.*make*,*' insurance premium '*,*self *.*insurance*)* *def* claim*(*self*,* discount*):* X *=* self*.*insurance *+* discount *return* X And hence I am not sure about the behavior of the first code in this email. -- Regards, Joseph Pareti

Re: From an existing Pandas DataFrame, how can I create a summary DataFrame based on the union of overlapping date ranges (given a start and an end date) and an additional column?

2020-06-09 Thread joseph pareti
pulling out all trips based on a > single company per aggregate/overlapping date range. > > Thank you in advance for any help! > > Aaron > -- > https://mail.python.org/mailman/listinfo/python-list > -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org/mailman/listinfo/python-list

Re: basic Python question

2020-05-08 Thread joseph pareti
yet, something is still unclear; in Python you can do things like: *clf0.fit(X_train, y_train)* which is not the way I programmed in other languages where a left-hand side and a right hand side is required. Am Fr., 8. Mai 2020 um 21:52 Uhr schrieb joseph pareti < joeparet...@gmail.com>:

Re: basic Python question

2020-05-08 Thread joseph pareti
yes, it is random forest classifier from scikit learn. Thank you. Am Fr., 8. Mai 2020 um 21:50 Uhr schrieb MRAB : > On 2020-05-08 20:02, joseph pareti wrote: > > In general I prefer doing: > > > > > > X_train, X_test, y_train, y_test = train_test_split(X, y, > t

basic Python question

2020-05-08 Thread joseph pareti
= metrics.accuracy_score(y_test, y_pred) Are the two codes really equivalent? -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org

Re: Pip not working on windows

2020-05-03 Thread joseph pareti
g it by python -m pip install --upgrade pip which worked but > I still can not use pip. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cel

Re: python and numpy

2020-04-21 Thread joseph pareti
ata scientist. > > Can someone please walk me through how to download Python, SO THAT I will > > be able to import numpy? > > > > Thanks, > > Derek > > > > Sent from Mail for Windows 10 > > > > -- > > https://mail.python.org/mailma

Re: Helping Windows first time users

2020-04-15 Thread joseph pareti
ply text? > > Barry > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org/mailman/listinfo/python-list

Re: NLP Project with Python

2020-04-08 Thread joseph pareti
t; -- > https://mail.python.org/mailman/listinfo/python-list > -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org/mailman/listinfo/python-list

jupyter notebook permission denied

2020-04-02 Thread joseph pareti
. However, a permission denied issue prevents loading/updating the *ipynb files. Any idea why? Same happens if I do it as Administrator. -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39

mport pytorch fails on my windows 10 PC

2020-03-28 Thread joseph pareti
-h9f7ef89_1/python.exe ./Users/joepareti/Miniconda3/pkgs/python-3.7.1-h8c8aaf0_6/python.exe ./Users/joepareti/Miniconda3/python.exe -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-20 Thread joseph pareti
indmost :) > > -- > > Robin Becker > > > > > -- > Mit freundlichen Grüßen > Herr Dipl. Math. Orges Leka > > Mobil: 015751078391 > Email: orges.l...@googlemail.com > Holzheimerstraße 25 > 65549 Limburg > -- > https://mail.python.org/mailma

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-18 Thread joseph pareti
regards, > > > > Christian > > -- > > https://mail.python.org/mailman/listinfo/python-list > > > > > -- > Mit freundlichen Grüßen > Herr Dipl. Math. Orges Leka > > Mobil: 015751078391 > Email: orges.l...@googlemail.com > Holzh

Re: Reduce waiting queue at supermarket from Corona with Python-Webapp

2020-03-17 Thread joseph pareti
> >>> If you do not have currently time, but know someone who would possibly > be > >>> interested in working at this project, I would be happy if you let me > >>> know. > >>> > >>> Kind regards, > >>> Orges Leka > >>>

Re: using classes

2020-03-13 Thread joseph pareti
+= anzahl def aussteigen(self, anzahl): self.insassen -= anzahl fiat = PKW("Fiat Marea",50,0,1) fiat = PKW("Fiat Marea",50,0) fiat.einsteigen(3) fiat.aussteigen(1) fiat.beschleunigen(10) print(fiat) Am Do., 12. März 2020 um 17:38 Uhr schrieb Pieter van Oostrum < piete

Re: using classes

2020-03-12 Thread joseph pareti
thank you, that fixes it. I also noticed that both statements work: super(PKW, self).__init__(bez,ge) or super().__init__(bez,ge) Am Do., 12. März 2020 um 12:58 Uhr schrieb MRAB : > On 2020-03-12 10:54, joseph pareti wrote: > > The following code that uses a class

using classes

2020-03-12 Thread joseph pareti
turn Fahrzeug.__str__(self) + " " + str(self.insassen) + " Insassen" def einsteigen(self, anzahl): self.insassen += anzahl def aussteigen(self, anzahl): self.insassen -= anzahl fiat = PKW("Fiat Marea",50,0) fiat.einsteigen(3) fiat.aussteigen(1) fiat.besc

apologies for my latest email; it was not intended for this mailing list

2019-11-11 Thread joseph pareti
-- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org/mailman/listinfo/python-list

Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-11 Thread joseph pareti
pareti < joeparet...@gmail.com>: > > > -- Forwarded message ----- > Von: joseph pareti > Date: Do., 7. Nov. 2019 um 09:26 Uhr > Subject: Re: Hi there! We are here to answer any questions you have about > Udacit... > To: Sherry from Udacity > > > ap

web scraper

2019-10-26 Thread joseph pareti
nch of ISIN codes (ii) access a specific website (=morningstar?), that does the ISIN-to-fund-name translation (iii) "inspect" that page containing the result and grab the fund name. I would appreciate any advice on how to program all this. Thanks. -- Regards, Joseph Pareti - Artificial Int

TypeError: unhashable type: 'list'

2019-10-23 Thread joseph pareti
(pattern, flags).search(string) File "c:\Users\joepareti\Miniconda3\pkgs\python-3.7.1-h8c8aaf0_6\lib\re.py", line 276, in _compile return _cache[type(pattern), pattern, flags] TypeError: unhashable type: 'list' Thanks for any insigths -- -- Regards, Joseph Pareti - Artificial In

Re: issue with regular expressions

2019-10-22 Thread joseph pareti
Ok, thanks. It works for me. regards, Am Di., 22. Okt. 2019 um 11:29 Uhr schrieb Matt Wheeler : > > > On Tue, 22 Oct 2019, 09:44 joseph pareti, wrote: > >> the following code ends in an exception: >> >> import re >> pattern = 'Sottos

issue with regular expressions

2019-10-22 Thread joseph pareti
rt' any help? Thanks -- Regards, Joseph Pareti - Artificial Intelligence consultant Joseph Pareti's AI Consulting Services https://www.joepareti54-ai.com/ cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org/mailman/listinfo/python-list

generate matplotlib images without having access to an X server

2019-01-23 Thread joseph pareti
ything I am missing? I am not familiar with the code, just trying to understand it. Thank you -- Regards, Joseph Pareti - Artificial Intelligence consultant cell +49 1520 1600 209 cell +39 339 797 0644 -- https://mail.python.org/mailman/listinfo/python-list

basic question on how "import" works

2019-01-19 Thread joseph pareti
ccessfully downloaded, extracting ...* 2. I don't see any such files in /tmp/data on my system, why? 3. (this is part of a code for training a neuronal network which works as expected, it's just for my own understanding of how this works -- Thank you) -- Regards, Joseph Pareti -

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-05 Thread joseph pareti
problem: all I have seen is that the error code changes depending on the PYTHONPATH value. Perhaps it is a bug in the application code? 2018-05-05 9:12 GMT+02:00 dieter <die...@handshake.de>: > joseph pareti <joeparet...@gmail.com> writes: > > thank you for the advice: d

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-04 Thread joseph pareti
thank you for the advice: depending on the value of PYTHONPATH (version 2.7, 3.5, or unset), tensorflow stops with 3 different error traps 2018-05-04 7:55 GMT+02:00 dieter : > Chris Angelico writes: > > ... > > Somewhere, you have a mismatch of versions.

Re: ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread joseph pareti
...@gmail.com>: > On Fri, May 4, 2018 at 1:53 AM, joseph pareti <joeparet...@gmail.com> > wrote: > > on an Ubuntu VM with : > > > > > >1. Linux JP-Paid-UBUNTU-DSVM 4.13.0-1014-azure > >2. Python 3.5.4 :: Anaconda custom (64-bit) > > > &g

ImportError: cannot import name _remove_dead_weakref

2018-05-03 Thread joseph pareti
on an Ubuntu VM with : 1. Linux JP-Paid-UBUNTU-DSVM 4.13.0-1014-azure 2. Python 3.5.4 :: Anaconda custom (64-bit) $ manta manta_genSimData.py Loading script 'manta_genSimData.py' Traceback (most recent call last): skipping some details ... File "/anaconda/lib/python2.7/weakref.py", line

syntax error (?) on ubuntu

2018-05-03 Thread joseph pareti
$ python tf_simple.py /anaconda/envs/py35/lib/python3.5/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import

permission denied when installing tensorflow on centos 7

2018-04-30 Thread joseph pareti
here are details on my attempt: tensorflow for centos 7 installation guidelines are in: https://gist.github.com/thoolihan/28679cd8156744a62f88 sudo yum -y install epel-release sudo yum -y install gcc gcc-c++ python-pip python-devel atlas atlas-devel gcc- gfortran openssl-devel libffi-devel #

Re: issues when buidling python3.* on centos 7

2018-03-29 Thread joseph pareti
CLUSION In summary, I don't know whether this configuration is consistent or not for building the manta application, and whether the python set-up is consistent. Also to be noted that the manta application was built by the authors on an ubuntu platform, so my work is an adaption to centos 2018-03-27 4:07

issues when buidling python3.* on centos 7

2018-03-25 Thread joseph pareti
I have a VM in the cloud running centos that comes with python 2.7 installed on it. For my purpose, I need python 3.5 (or 6?) However there is an issue with urlgrabber, and I believe this is due to inconsistencies with the 2 python versions, whcih I am not able to resolve. DETAILS INSTALL