Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch Programming Computer Science by Duane_4 This is an interesting and useful post. I believe there is a typo in the 7th code block relating to train/val/test split. The second line should read: val_df, test_df = train_test_split(temp_df, test_size=0.5, random_state=42) The whole point of temp_df in the first line was to separate out 30% for val/test; the second line splits that to … Re: Fine-Tuning OpenAI Whisper Model for Audio Classification in PyTorch Programming Computer Science by meyerrluanna The post gives a really clear, step-by-step guide on how to fine-tune the OpenAI Whisper model for audio classification. Its great how it covers everything from preparing the dataset to using tools for feature extraction and model training .This is definitely worth checking out, The explanations are practical, and the code snippets make it easy to … Re: With Rapid Tech Advancement, Beware the Pitfalls of Centralization Community Center by meyerrluanna Hey, I really enjoyed your post on the risks of centralization as tech keeps advancing. You’re right centralizing too much data or control can create vulnerabilities, especially in today’s world where everything is becoming more interconnected. If one system fails, it can affect a lot of areas. I’ve seen this play out in the way companies use AI… Re: Map..Please help Programming Software Development by zolymo …Texts, that contains str1= "tree", str2="map", str3 = "sorted"... is necessary that…[]){ Texts tx = new Texts("tree", "map", "sorted"); TreeMap<Integer,Texts>…(1, tx); System.out.println("Keys of tree map: " + tMap.keySet()); System.out.println("… Map and while() Programming Software Development by sadsdw …; int father; int mother; } ; // ... std::map<int, STreeGenSimple> IndivAuxIDSortedMap; myfileReadAuxIdSorted.open("auxIdSorted…current_indivSortedAuxID.father = fatherV; current_indivSortedAuxID.mother = motherV; }; std::map<int, STreeGenSimple>::const_iterator it4; for (it4 = … Re: Map and while() Programming Software Development by sadsdw …, Thanks for replied me. I need read my map the first time and update the auxId (I didn…this in my code). But, just reading my map one time is no possible to update my variable.…or in other words I need to read my MAP until my variable AuxId in all lines become …zero. I don't know how to read a map many times controlled by while and auxiId. Could … Re: Map..Please help Programming Software Development by javausers Here the output I got: Keys of tree map: [1] Values of tree map: [[Ljava.lang.object;@3e25a5] I want the output as: Keys of tree map: [1] Values of tree map: tree map sorted Map..Please help Programming Software Development by javausers Hi, I m writing code to map single key(Integer) with array of values. But, its not…<Integer, Object[]>(); Object[] vals = {"tree", "map", "sorted"}; tMap.put(1, vals); System.out….println("Keys of tree map: " + tMap.keySet()); System.out.println("Values of … Re: Map and while() Programming Software Development by NathanOliver … to make sure that auxID for every object in the map is not zero then you can do something like [code…=c++] std::map<int, STreeGenSimple>::iterator it = IndivAuxIDSortedMap.begin(), end = IndivAuxIDSortedMap… Re: Map and while() Programming Software Development by NathanOliver … any zeros are left bool ZerosRemaning(std::map<int, STreeGenSimple> IndivAuxIDSortedMap) std::map<int, STreeGenSimple>::iterator it = IndivAuxIDSortedMap… Re: Map and while() Programming Software Development by sadsdw Hi Nathan, Can you check my code, please? Is it in your mind? [CODE]bool ZerosRemaning(std::map<int, STreeGenSimple> IndivAuxIDSortedMap) { std::map<int, STreeGenSimple>::const_iterator it5; for (it5 = IndivAuxIDSortedMap.begin(); it5 != IndivAuxIDSortedMap.end(); ++it5) { if(it5->second.auxID == 0) return 1; } }[/CODE] Re: Map and while() Programming Software Development by NathanOliver … should add `return false;` bool ZerosRemaning(std::map<int, STreeGenSimple> IndivAuxIDSortedMap) { std::map<int, STreeGenSimple>::const_iterator it5; for… Re: Map..Please help Programming Software Development by NormR1 The Map contains an array. Get the array out of the Map Write a loop to go thru the array. Get each element from the array and cast it to a String Re: Map..Please help Programming Software Development by JamesCherrill Although that approach can work, at least for a fixed size list of values, it's a pretty heavy way to overcome the OP's problem which was how to print an array of Strings. A better answer would be to use the Arrays.toString method, as in [CODE]System.out.println("Values of tree map: " + Arrays.toString(tMap.values()));[/CODE] Re: Map..Please help Programming Software Development by NormR1 … java.util.Arrays System.out.println("Values of tree map: " + Arrays.toString(tMap.values())); ^ [/CODE… Re: Map..Please help Programming Software Development by JamesCherrill Well now, don't I feel really stupid! I focussed on the array of Objects, but forgot that they were embedded in a Collection. This code I [I]have [/I]tested, although I can't help feeling there is a better way... [CODE]System.out.println("Values of tree map: " + Arrays.deepToString(tMap.values().toArray()));[/CODE] Re: map Programming Software Development by L7Sqr [QUOTE=namratag;1694856]How to get value from key in map?[/QUOTE] A map can be indexed by the key to retrieve a value. So, given the key [icode]key[/icode] and the map [icode]table[/icode], you could get the value for key by way of [icode]table[key][/icode]. Map help! Programming Software Development by GlenRogers … put into a Set and that Set put into the Map as the value. There is also a Notes JTextArea that… on the repair problem. For each cusomer name in the Map I want to store the notes as well as the… Re: Map help! Programming Software Development by GlenRogers "Name:" was a string I put into the map with the name string, like this private void processSave() { String … it out now as later I need to search the map baseed on name keys, the String "Name:" gets… Re: Map help! Programming Software Development by GlenRogers Thanks for the reply James! I have a DeskApp class to process all the GUI stuff, am I right in saying that it will hold a Map with Customer objects as keys and List or Set of Repair objects as values? Re: Map help! Programming Software Development by JamesCherrill You could do that. I would just have a List of Customers (or maybe a Map with customer.name as the key, and the whole Customer object as the value, so it's easy to find the right customer), and in each customer I would have it's own list of Repairs as an field. Re: Map help! Programming Software Development by GlenRogers … the value. Then it is supposed to print out the map. private void processSave() { cust.setName(nameText.getText()); cust.setStreet(streetText… Re: Map help! Programming Software Development by GlenRogers Glen is the name which is th key in the map. The toString() method is in th same class as the processSave() method I posted. Should it be in the Customer class? Re: Map help! Programming Software Development by GlenRogers Hi again, I havent done much of this since I was last here. Can anyone help me in printing a map so that each key/vlue pair is on a seperate line? Thanks Glen.. Re: Map help! Programming Software Development by JamesCherrill There's a method that returns all the keys in a map. Use it to loop through all the keys, printing each key and its corresponding value. Re: Map help! Programming Software Development by GlenRogers That was the problem. I had one Customer variable and it kept having its values replaced so alway printed out the last set of values. Simple fix, I made my method thad adds Customers to the map create a new Customer object each time it was called (a button press) Onward and upwards now! Thank you map Programming Software Development by namratag How to get value from key in map? Re: map Programming Software Development by Dman01 Look at [url]http://www.cplusplus.com/reference/stl/map/begin/[/url] the 'first' member does give you access to the key member map.openInfoWindow Programming Web Development by stevenpetersen … = new GMarker(point); map.addOverlay(marker); map.openInfoWindow(map.getCenter(), document.createTextNode("…want to style")); map.addControl(new GMapTypeControl()); map.addControl(new GLargeMapControl()); map.addControl(new GOverviewMapControl()); … Re: Map Not Returning Correct Count Programming Software Development by MonsieurPointer …block below). Also, you are passing the same map ([b]map[/b]) in each call, meaning the number will… GetFileList(L"C:\\Users\\DS\\Downloads\\*.pdf", map); map.clear(); int count1 = GetFileList(L"C:\\Users\\…DS\\Downloads\\*.txt", map); map.clear(); int count2 = GetFileList(L"C:\\Users\\DS…