Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: DS/ML - what is next?
Post: DS/ML - what is next?
Good day, Dear DS/ML specialists/enthusiasts
I have read several DS/ML and Python books, passed additional online courses, participated in Kaggle.
What can I learn additionally in terms of Python or ... |
|
OmegaRed94 |
Data Science |
1 |
1,180 |
Aug-30-2022, 06:23 PM |
|
|
Thread: PyTorch for beginners
Post: PyTorch for beginners
Good day, Dear Pythonistas
Most tutorials and books that I found had many depreciated methods and approaches.
Could you, please, suggest a great modern PyTorch tutorial/book/course for beginners ? |
|
OmegaRed94 |
Data Science |
1 |
1,131 |
Jun-09-2022, 05:39 PM |
|
|
Thread: Python and SQL mastery
Post: Python and SQL mastery
Good day, Dear Pythonistas
I have the following question:
I know that there are a lot of courses and materials about (Python + SQL) implementation, although most of them have very different approach... |
|
OmegaRed94 |
General Coding Help |
1 |
960 |
Mar-26-2022, 04:29 PM |
|
|
Thread: Descending order unique squares
Post: RE: Descending order unique squares
(Sep-26-2021, 09:00 AM)deanhystad Wrote: Leave out the list() call. Not needed. Have sorted reverse the order
Thanks again |
|
OmegaRed94 |
Homework |
6 |
2,483 |
Sep-26-2021, 09:08 AM |
|
|
Thread: Descending order unique squares
Post: RE: Descending order unique squares
Thank you very much) By now it looks like this:
import itertools
def process(l):
return [i**2 for i in sorted(set(list(itertools.chain(*l))))[::-1]] |
|
OmegaRed94 |
Homework |
6 |
2,483 |
Sep-26-2021, 08:33 AM |
|
|
Thread: Descending order unique squares
Post: Descending order unique squares
Good day, Dear Pythonistas
I have the following problem: Given a list, we should write a function that returns sorted in descending order unique squares of numbers contained in this list
I have got... |
|
OmegaRed94 |
Homework |
6 |
2,483 |
Sep-26-2021, 07:18 AM |
|
|
Thread: Functions: Recursion
Post: RE: Functions: Recursion
(Sep-10-2021, 03:18 PM)naughtyCat Wrote: def sequence(n: int):
print(n)
if n <= 0: return
sequence(n-5)
sequence(16)Output:16
11
6
1
-4OR
def sequence(n: int, arr = None):
if no... |
|
OmegaRed94 |
General Coding Help |
4 |
1,952 |
Sep-10-2021, 05:38 PM |
|
|
Thread: Functions: Recursion
Post: RE: Functions: Recursion
(Sep-10-2021, 12:52 PM)deanhystad Wrote: The instructions say print. Why are you using a list?
Your recursive function creates a list each time it is called. You append one value and return the l... |
|
OmegaRed94 |
General Coding Help |
4 |
1,952 |
Sep-10-2021, 05:37 PM |
|
|
Thread: Functions: Recursion
Post: Functions: Recursion
Good day, Dear Pythonistas
I have the following problem:
Write a function sequence(n) that will print out a sequence of numbers without using a for / while loop. If the number n is given, print the n... |
|
OmegaRed94 |
General Coding Help |
4 |
1,952 |
Sep-10-2021, 11:55 AM |
|
|
Thread: Understanding Python super() for classes
Post: Understanding Python super() for classes
Good day, Dear Pythonistas
Could you, please, explain in a simple way why super() is used for classes sometimes. I saw many examples dealing with single inheritance and multiple inheritances, it is e... |
|
OmegaRed94 |
General Coding Help |
1 |
1,879 |
Jun-09-2021, 08:48 AM |
|
|
Thread: Object Oriented programming (OOP) problem
Post: RE: Object Oriented programming (OOP) problem
(May-31-2021, 03:53 PM)deanhystad Wrote: This starts with a blank class and adds attributes.
class Blank():
pass
class NotBlank():
def __init__(self):
self.a = 1
self.b = 2.... |
|
OmegaRed94 |
General Coding Help |
6 |
2,982 |
May-31-2021, 07:19 PM |
|
|
Thread: Object Oriented programming (OOP) problem
Post: RE: Object Oriented programming (OOP) problem
(May-31-2021, 12:32 PM)BashBedlam Wrote: Your function is not returning anything. Try it like this:
#Create arbitrary class
class Object():
def __init__(self,value1,value2,value3):
self.v1=value... |
|
OmegaRed94 |
General Coding Help |
6 |
2,982 |
May-31-2021, 07:18 PM |
|
|
Thread: Object Oriented programming (OOP) problem
Post: RE: Object Oriented programming (OOP) problem
(May-31-2021, 12:56 PM)jefsummers Wrote: Your arbitrary class is named Object1, whereas D is declared to be of class Object. Add a 1.
Also that is way too close to a Python reserved word. Suggest u... |
|
OmegaRed94 |
General Coding Help |
6 |
2,982 |
May-31-2021, 07:17 PM |
|
|
Thread: Object Oriented programming (OOP) problem
Post: Object Oriented programming (OOP) problem
Hello everyone, Dear Pythonistas
I have started to learn python several months ago and got to Object Oriented programming (OOP), solved many exercises but some of them are still quite difficult due t... |
|
OmegaRed94 |
General Coding Help |
6 |
2,982 |
May-31-2021, 11:45 AM |