Should mention this also affects Protocol[Buzz]
On Fri, Jun 30, 2023, 5:35 PM Joseph Garvin wrote:
> ```
> from __future__ import annotations
> from typing import Generic, TypeVar
>
> T = TypeVar("T")
> class Foo(Generic[T]): ...
> class Bar(Foo[Buzz]): ..
```
from __future__ import annotations
from typing import Generic, TypeVar
T = TypeVar("T")
class Foo(Generic[T]): ...
class Bar(Foo[Buzz]): ... # NameError here
class Buzz: ...
```
This will error, despite the __future__ import, because cpython is trying
to look up Buzz before it's defined,
Reducing repetitiveness has made this code harder to read. I had to think about
what it is doing. It might be slightly faster, but in my opinion it is not
worth it.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Stefan Ram
Sent
want to manually change.
Perhaps you could encourage them to upgrade.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Chris Green
Sent: Monday, November 7, 2022 4:06 AM
To: python-list@python.org
Subject: Re: How to manage python
precision.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Pieter van Oostrum
Sent: Sunday, October 23, 2022 10:25 AM
To: python-list@python.org
Subject: Re: Are Floating Point Numbers still a Can of Worms?
Mostowski Collapse writes:
>
I head a small software team much of whose output is Python. I would
gratefully accept any of the formats you show below. My preference is #1.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Paulo da Silva
Sent: Saturday, October
#Try using, it's save in json format of the website:
import json
import requests
from bs4 import BeautifulSoup
url = "https://www.empireonline.com/movies/features/best-movies-2/;
soup = BeautifulSoup(requests.get(url).content, "html.parser")
data =
variables for this .py file for shared interface and the
variables
This works well, making sure separate python files shared exactly the same
things we want to be global.
---- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Stefan
thread approach avoids thinking about multiprocessing, locking and
unlocking data structures, all that stuff that does not contribute to the goal
of the program.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Andreas Croci
Sent: Monday
Buy the book "Python 101" and do the examples. When you're done with that buy
the book "Python 201" and study it. There is much more than is in both those
books that you could learn about Python, but that's a very good way to start.
--- Joseph S.
Teledyne Confid
Re: "...which takes a callable (the lambda here)"
Python lamdas have some severe restrictions. In any place that takes a
callable, if a lambda can't serve, just use def to write a function and use the
function name.
---- Joseph S.
Teledyne Confidential; Commercially Sensitive Bus
ariable to be global. In the function declare global
var, so that it will not only read the global but will also write it. That
variable does not go away. On the next time the function is called, It will
hold whatever value it had when the function finished previously.
Joseph S.
Teledyne Confid
I realize this is Python code, but I doubt that the question is a Python
question. I have used Python +numpy, scipy, matplotlib for years. I have not
used reportlab and have no idea about the reported problem except that I will
be very surprised if it turns out to be a Python language issue.
Can someone please change the topic of this thread? No longer about for-else.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Dennis Lee Bieber
Sent: Sunday, March 6, 2022 1:29 PM
To: python-list@python.org
Subject: Re: Behavior of the for-else
Useful: On rare occasions (when a loop has a "break" in it)
Used: Yes
Know how it works: Yes
Even is such a thing: Yes
Your suggestion: Also useful. Will require a different keyword. I don't
know what that would be. "finally" is available Write up a feature re
python Qt
binding):
$ pip install line-profiler-gui[PySide2]
$ pip install line-profiler-gui[PyQt5]
The code is available on Github: https://github.com/Nodd/lineprofilergui
Happy optimization!
Joseph
___
Python-announce-list mailing list
> You might try `py-spy`.
That worked well, I started trying to get more data from the profile
output with the stats module but didn't quite get there.
Thank you everyone,
jlc
--
https://mail.python.org/mailman/listinfo/python-list
I am trying to track down a slow script startup time. I have executed the
script using `python -m cProfile -o profile /path/script.py` and read through
the results, but the largest culprit only shows various built-ins.
I expected this given the implementation, but I was hoping to get some
finer
Joseph Perez added the comment:
There is also https://bugs.python.org/issue44293 about inspect.isclass
--
nosy: +joperez
___
Python tracker
<https://bugs.python.org/issue45
Joseph Fox-Rabinovitz added the comment:
I closed the issue (it's already been rejected), primarily based on
> a.__index__ = is an unauthorized use of a *reserved* word and the
> effect of such usage is not and need not be documented.
> The entry for __*__ does include &
if you couldn't do it.
Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Mahmood Naderan
Sent: Saturday, November 6, 2021 6:01 PM
To: python-list@python.org; MRAB
Subject: Re: Problem with concatenating two dataframes
>The sec
. And as previously pointed out you
can still just use = .
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Chris Angelico
Sent: Monday, October 25, 2021 6:25 PM
To: Python
Subject: Re: New assignmens ...
On Tue, Oct 26, 2021 at 9:19 AM dn via
Joseph Riddle added the comment:
_Private__names seems to no longer exist in the Python 3.11 documentation.
https://docs.python.org/3.11/library/enum.html#private-names
It appears to have been removed in this PR
https://github.com/python/cpython/pull/23748/files
Should this issue
Joseph Perez added the comment:
Indeed, sorry, my example was bad. My library was raising at several place, and
I've extrapolated about generic substitution.
I've indeed other substitutions (without `TypeVar`), and because they were
failing, I've assumed that all of my substitutions were
New submission from Joseph Perez :
`types.UnionType` is not subscriptable, and this is an issue when type
manipulations are done.
A common maniputation I've to do is to substitute all the `TypeVar` of a
potential generic type by their specialization in the given context.
For example, given
with us.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Mostowski Collapse
Sent: Tuesday, September 14, 2021 8:56 AM
To: python-list@python.org
Subject: Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)
I am testing a Prolog
Actually, Python has an fsum function meant to address this issue.
>>> math.fsum([1e14, 1, -1e14])
1.0
>>>
Wow it works.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Hope Rouselle
Sent: Thursday, Septemb
the final sum. This is much
more likely to work accurately than adding up all the values in one summation
except the last, and then adding the last (which could be a relatively small
value).
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original
('-')
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
Complete documentation link (this link works) :
https://matplotlib.org/stable/contents.html
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Steve
Sent: Thursday, August 26, 2021 11:48 AM
To: python-list@python.org
Subject
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
("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))
New submission from John Joseph Morelli :
I first noticed this and reported it on the W3 Schools Tutorial, the section
entitled "Add Two Numbers with User Input"
There were many behaviors that I did not understand, but for this bug report, I
will state that the input statements pr
build an enum type
from one string and instantiate enums of that type from the other string.
In short, if you have problems creating an enum in C and passing it to Python,
give the problems to Python! Let it create the enum.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive
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: '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
.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
--
https://mail.python.org/mailman/listinfo/python-list
New submission from Joseph Perez :
`typing.NewType` doesn't support PEP 604.
```
>>> import typing
>>> A = typing.NewType("A", int)
>>> B = typing.NewType("B", str)
>>> A | B
Traceback (most recent call last):
File "", l
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
Joseph Perez added the comment:
@Jelle Zijlstra Thank you for the explanation.
> The current implementation of GenericAlias has been around for a few releases
> by now, though, so that change might break some use cases.
I agree that a "fix" could have unexpected side-effect
New submission from Joseph Perez :
PEP 585 has the side-effect of making `list[int]` an instance of `type`. This
is not the case for other generic aliases.
It also implies that `inspect.isclass(list[int]) is True`, while `list[int]` is
not a class; as a proof of this statement `issubclass
)). The first argument is the variable, the
second should be type name.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: hw
Sent: Sunday, May 23, 2021 3:34 PM
To: python-list@python.org
Subject: Re: learning python ...
On 5/23/21 7:28 PM
New submission from Joseph Trask Still :
This issue occurs on my M1 MacBook Pro running macOS 11.3.1.
Steps to reproduce:
1. Open the Python installation package
2. When asked where to install the package, click "Customize" at the bottom of
the dialog
3. Uncheck the GUI Tools option
about our
scripts being written in Python, and I don't expect to.
-- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
--
https://mail.python.org/mailman/listinfo/python-list
New submission from Joseph Ishac :
I have noticed an issue (Python 3.8.5) where an email can be read in as bytes,
but will not be returned as such with the as_bytes() call if the message is
multipart, has a boundary which is not properly quoted, and the message has
non-ascii text. It seems
Hi, Im looking for some help with my program, I have been set a task to make a
Strain Calculator. I need it to input two numbers, choosing either Metres or
Inches for the 'Change in Length' divided by the 'Original Length' which can
also be in Metres or Inches, the out put number also needs to
;. Someone who looks into this should check if the
second part of a hyphenated expression needs to be capitalized.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Original Message-
From: Abdur-Rahmaan Janhangeer
Sent: Friday, March 19, 2021 11:02 AM
To: Pa
mbined
into one, or some even emailed.
Last word of advice, don't fight it by hacking up or patching (somehow?), it
will
simply not work right for any other case even slightly different than the one
you
somehow beat into submission.
I hope that helps,
Joseph Casale
--
https://mail.python.org/m
Change by Joseph Shen :
--
nosy: +benjamin.peterson
___
Python tracker
<https://bugs.python.org/issue43278>
___
___
Python-bugs-list mailing list
Unsubscribe:
Joseph Shen added the comment:
Right now there is no need to keep this limits, and the __version__ info from
GCC is quite simple. Pls the attached snapshot image.
Therefor I don't think we should keep a commit from 2000.
--
___
Python tracker
Change by Joseph Shen :
--
title: Inconsistent behavior of Py_GetCompiler() -> unnecessary leading '\n'
from Py_GetCompiler() when build with different complier
___
Python tracker
<https://bugs.python.org/issu
Change by Joseph Shen :
--
keywords: +patch
pull_requests: +23384
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24606
___
Python tracker
<https://bugs.python.org/issu
New submission from Joseph Shen :
The function Py_GetCompiler() return the version info with a leading '\n' when
build with GCC/clang, while without this on other compilers. This inconsistent
make the REPL print the 'welcome message' quit different, which I think is not
we expect.
>F
I have some code that makes use of the typing module.
This code creates several instances of objects it creates
from a library that has some issues.
For example, I have multiple list comps that iterate properties
of those instance and the type checker fails with:
Expected type
o ch each time, each iteration gets the next character.
To prevent each character from appearing on a separate line (in Python 3) you
need end="". That is, don't put in the usual end-of-line ending.
--- Joseph S.
Teledyne Confidential; Commercially Sensitive Business Data
-Origi
Indeed there are many. One I have not seen listed here yet, that is quite
light, starts quickly, but does have good debugging capability is PyScripter.
Completely free, downloadable from SourceForge, 32 or 64 bit versions (must
match your Python type).
--- Joseph S.
Teledyne Confidential
oyee['name'])
> >
> > return PERSONDatabase(employee['created_at'],
> > employee['id'],
> > employee['name'],
> > employee['attend_date'],
> >
New submission from Joseph Perez :
`typing.get_type_hints` gives a different result for a wrapper created with
`functools.wraps` in case of inferred `Optional` arguments (when the default
value of the argument is None)
```python
from functools import wraps
from typing import get_type_hints
Good day,
I keep getting this error message when trying to open Python 3.8.5 on my
computer windows 7 , 64 bit.
---
python.exe - System Error
---
The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing
from your computer. Try
I've started writing some asyncio code in lieu of using threads and
managing concurrency and primitives manually.
Having spent a lot of time using c#'s async implementation, I am struggling
to see an elegant pattern for implementing cancellation. With the necessity
for the loop (that of which I
> If you have windows 10 can you use Windows Subsystem for Linux (WSL)
> to install one of the Linux distros and use that?
Interesting idea, sadly I am too far past the deadline on this to go through
the red tape needed to get that in place.
Thanks,
jlc
--
Anyone ever used pexpect with tooling like kadmin and have
insight into how to manage interacting with it?
After setting up debug logging, I was able to adjust the expect
usage to get the input and output logs to at least appear correct
when setting a password for a principal, however even with a
that it prints '1',
because the default value was NOT USED. If it was used, you would see 'Nobody
expects this' followed by 0.
--- Joseph S.
-Original Message-
From: Mark Polesky
Sent: Tuesday, December 15, 2020 12:07 PM
To: python-list@python.org
Subject: dict.get(key, default
> Installed on this Slackware-14.2/x86_64 workstation with python-3.9.1 are:
> python-setuptools-22.0.5-x86_64-1
I just ran into this recently, I don't recall the actual source but it was the
version
of setuptools having been so old. Your version is from Jun 3, 2016...
Update it, that was what
hen you've done that, read Python 201. I
think they are very good "learn Python" books.
If you're surprised that the end point is not included in range, you need to
read Python 101.
--- Joseph S.
-Original Message-
From: Tim Chase
Sent: Saturday, December 12, 2020 11:51 AM
To: Bisc
it was for your
executable, because Python will call it; and in a second of so after it
finishes Python can read in results and format whatever report you like.
--- Joseph S.
-Original Message-
From: Tito Sanò
Sent: Monday, December 7, 2020 11:59 AM
To: python-list@python.org
Subject: linear
h a letter, then it will be a string. If I say
I want to replace "?" that may not exist in the string, but that's OK.
Joseph S.
-Original Message-
From: Bischoop
Sent: Monday, December 7, 2020 10:48 AM
To: python-list@python.org
Subject: Letter replacer - suggestions?
I wor
> Invalid character found in method name [{}POST]. HTTP method names must be
> tokens.
/snip
> I could see in from wireshark dumps it looked like - {}POST
> HTTP/1.1
The error message and your own debugging indicate the error.
Your method *name* is {}POST, you have somehow included two
I'm a C++ programmer and Python programmer as well. Python classes are not
exactly like C++ classes.
If you define a class where every method has an implementation, then it really
isn't abstract. It can be instantiated. You can force it to be abstract by
doing from abc import ABCMeta and
Joseph Fox-Rabinovitz added the comment:
Last attempt before I give up:
ctypes.CDLL initializer defined in version 3.8 and beyond as
```
def __init__(self, name, mode=DEFAULT_MODE, handle=None,
use_errno=False,
use_last_error=False,
winmode=None
Joseph Fox-Rabinovitz added the comment:
Company firewall mutilated the text. Here is another attempt:
ctypes.CDLL initializer defined in version 3.8 and beyond as
```
def __init__(self, name, mode=DEFAULT_MODE, handle=None,
use_errno=False,
use_last_error=False
Change by Joseph Fox-Rabinovitz :
--
title: Documentation of -> Documentation of ctypes.CDLL does not correspond to
code
___
Python tracker
<https://bugs.python.org/issu
New submission from Joseph Fox-Rabinovitz :
ctypes.CDLL initializer defined in version 3.8 and beyond as
```
def __init__(self, name, mode=DEFAULT_MODE, handle=None,
use_errno=False,
use_last_error=False,
winmode=None):
```
Documentation says `winmode=0
there in
your Python installation. Or download PyScripter, or Jetbrains' PyCharm, or
Wing (see recent new version announcement).
--- Joseph S.
-Original Message-
From: jjall...@aol.com
Sent: Thursday, October 8, 2020 12:59 PM
To: python-list@python.org
Subject: Fwd: Python 3..9.0
Hi
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
coun". Then your script will run.
--- Joseph S.
-Original Message-
From: Shivlal Sharma
Sent: Monday, September 7, 2020 3:09 AM
To: python-list@python.org
Subject: What this error want to say? Can't we use return without function?
N = int(input("enter a positive integer:"
Joseph Perez added the comment:
That's why it's not an interpreter issue but a lack in the official
documentation where the signature is documented.
I quote https://docs.python.org/3/library/functions.html#type:
> class type(object)
> class type(name, bases, dict)
The second line
New submission from Joseph Perez :
Class definition can have kwargs which are used by `__init_subclass__` (and
`__prepare__`).
However, passing these kwargs using `type` builtin function instead of class
definition syntax is not documented; kwargs are not mentioned in the function
signature
he "return answer" line at the end, where the "answer=km_mi" used to be.
That should help. The code calculates "answer". It prints "answer". You
should return "answer" at the end, after it has been calculated.
--- Joseph S.
-Original Mes
it expects to access.
Then you can use any PC based debugger (PyScripter, Jetbrains' PyCharm, Visual
Studio with Python support, etc) to debug in the simulated environment.
--- Joseph S.
-Original Message-
From: Grant Edwards
Sent: Sunday, August 23, 2020 12:59 PM
To: python-list@python.org
Joseph Perez added the comment:
However, PEP 563 will not solve the recursive type alias issue like `A =
list["A"]` but this is a minor concern.
--
___
Python tracker
<https://bugs.python.o
New submission from Joseph Perez :
PEP 585 current implementation (3.10.0a0) differs from current Generic
implementation about ForwardRef, as illustrated bellow:
```python
from dataclasses import dataclass, field
from typing import get_type_hints, List, ForwardRef
@dataclass
class Node
Joseph Perez added the comment:
Ok, I admit that I did not think about recursive type when proposing this "fix".
I've tried an implementation that just stop when recursion is encountered in a
PR.
--
___
Python tracker
<https://bu
Change by Joseph Perez :
--
keywords: +patch
pull_requests: +20699
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21553
___
Python tracker
<https://bugs.python.org/issu
New submission from Joseph Perez :
(This issue is already broached in https://bugs.python.org/issue38605, and a in
some way in https://bugs.python.org/issue35834, but only as a secondary
subject, that's why I've opened a ticket on this particular issue)
ForwardRef of ForwardRef
Joseph Hackman added the comment:
According to the DNS standard, hostnames with more than 63 characters per label
(the sections between .) are not allowed
[https://tools.ietf.org/html/rfc1035#section-2.3.1].
That said, enforcing that at the codec level might be the wrong choice. I threw
*):*
*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
On 2020-06-09 09:00, zljubi...@gmail.com wrote:
Well the problem that I am facing with is, that I have to establish interface
between python and outer system.
Original question was about creation of input object (data that I have received from outer system).
If I accept recommendation to use
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
evels of optimization. I have experienced slowdowns from source
built python of the same version as the distribution python even when
using some optimization flags with the configure script. This appears to
be normal behavior and is not cause for concern about the performance of
python 3.9.0b1
--
Joseph Jenne
--
https://mail.python.org/mailman/listinfo/python-list
I have some json encoded input for nodemailer
(https://nodemailer.com/message/embedded-images)
where the path key is a string value which contains the base64 encoded data
such as:
{
html: 'Embedded image: ',
attachments: [{
filename: 'image.png',
path:
. notEveyoneThinksReadingCamelCaseIsEasy.
-- Joseph S.
-Original Message-
From: Lance E Sloan
Sent: Monday, May 18, 2020 3:47 PM
To: python-list@python.org
Subject: why no camelCase in PEP 8?
I've been using Python for about 18 years. Several things have changed in the
language
Ok, thanks Souvik. Appreciate your help.
On Fri, May 15, 2020, 11:47 PM Souvik Dutta wrote:
> I dont know if you should shift from powershell to cmd. Python kinda does
> not work in powershell.
>
> Souvik flutter dev
>
> On Sat, May 16, 2020, 8:54 AM Jhoana Kacheva Melissa
藍藍 but I still get the error in powershell. What should I do Souvik?
On Fri, May 15, 2020, 11:20 PM Souvik Dutta wrote:
> Then you will have to use python3 forever in your life (atleast as long as
> you don't change your os... 藍藍).
>
> On Sat, 16 May, 2020, 8:42 am Jhoana Kacheva Me
the other and try again.
>
> On Sat, 16 May, 2020, 8:29 am Souvik Dutta,
> wrote:
>
>> Have you added python into path?
>>
>> On Sat, 16 May, 2020, 8:15 am Jhoana Kacheva Melissa Joseph, <
>> kachev...@gmail.com> wrote:
>>
>>> Thanks for the t
Hello,
I downloaded python 3.8 in my windows, I selected the box for the path but
when I try to run it in powershell it brought me to app store to get it
again.
Please let me know
Thanks
Melissa
--
https://mail.python.org/mailman/listinfo/python-list
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>:
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
=
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
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
1 - 100 of 691 matches
Mail list logo