Let's say we have channel x Length signal data ex)EEG (electroencephalogram) or time series data.
We might wonder what dominant Hz is there.
The code analysis this question and return 5 top dominant frequency.
.
..
Let's say we have channel x Length signal data ex)EEG (electroencephalogram) or time series data.
We might wonder what dominant Hz is there.
The code analysis this question and return 5 top dominant frequency.
.
..
There are same eeg_id in data, but we can split it based on same id to train, val using GroupShuffleSplit.
Refer to code:
.
..
Thank you.
ππ»♂️
expand and interpolation n by m data to n x (m+l)
.
..
import below lib.
Thank you!!
it's custom checkpoint function
.
..
call it on training process
.
..
saved top k files (ckpt, pth) file showing up on folder.
Thank you.
ππ»♂️
Find large file in GitHub repository
.
..
git rev-list --objects --all
lists all objects in the repository.git cat-file --batch-check='...'
checks the type, size, and other details of these objects.awk '$3 > 100*1024*1024'
filters objects larger than 100 MB (note: 1024*1024 bytes = 1MB).sort -k3nr
sorts these objects by size in descending order..
// Existing dictionary of ages
var ages: [String: Int] = ["John": 30, "Emma": 25]
// Adding a new dictionary with String keys and String values
var occupations: [String: String] = ["John": "Engineer", "Emma": "Doctor"]
// Adding a new key-value pair to the occupations dictionary
occupations["Mike"] = "Teacher"
// Updating a value for a key in the occupations dictionary
occupations["Emma"] = "Senior Doctor" // Emma got a promotion!
// Accessing a value for a given key in the occupations dictionary
if let occupation = occupations["John"] {
print("John's occupation is \(occupation).")
} else {
print("John's occupation is not available.")
}
// Merging the ages and occupations dictionaries
// Assuming you want to create a summary for each person
for (name, age) in ages {
if let occupation = occupations[name] {
print("\(name) is \(age) years old and works as a \(occupation).")
} else {
print("\(name) is \(age) years old.")
}
}
// Removing a key-value pair from the occupations dictionary
occupations["Mike"] = nil // Mike's occupation is removed
// Iterating over all key-value pairs in the occupations dictionary
for (name, occupation) in occupations {
print("\(name) works as a \(occupation).")
}
// Checking the count of elements in both dictionaries
print("There are \(ages.count) people in the ages dictionary.")
print("There are \(occupations.count) occupations listed.")
..
refer to code, hope to get some useful idea.
Thank you.
ππ»♂️
pip install pytube
replace playlist url in string
.
..
Thank you.
ππ»♂️
String
.
String optional
.
Int
.
Int optional
.
Float
.
Double
.
Bool
.
optional type is added '?' in the end of type.
so that the value can be have "nil". "nil" is also classified false in if logic.
The reason why exist such a type is swift is UI based language and value from ui button or action might have any value, so to prevent error, optional type would be needed.
ππ»♂️
input > conda list | grep torch