vector tag

13 questions


1 answers
407 views
0
I have a question because there is a partial error in bow_vect = vector.fit_transform.

bow_vect = vect.fit_transform(df1['review'].tolist())이 부분에서 ValueError: np.nan is an invalid document, expected byte or unicode string.There is this error, but is it because of the wrong file designat...

1 years ago

1 answers
145 views
0
To convert a vector to an array?

vector that stores doubleI want to convert double to an array that stores it.What function should I use?

2 years ago

1 answers
131 views
0
About setting up Vector classes in java

The exercise problem is to create a program that receives information from people, stores it in data, and watches it anytime Vector vc = new Vector(); if (file.exists()){ ObjectInputStream ois = new ...

2 years ago

1 answers
162 views
0
Question related to deleting vector object.

vector<list<CObj*>> m_vecObj;for (UINT i = 0; i < iSize; ++i){ list<CObj*>::iterator iter = m_vecObj[i].begin(); for (; iter != m_vecObj[i].end(); ++iter) { if (i == MISSILE) { ...

2 years ago

1 answers
155 views
0
Which one should I use to sort vectors in descending order?

Please explain which one to use when sorting vectors in descending order, which one do you prefer?std::sort(numbers.begin(), numbers.end(), std::greater<int>());std::sort(numbers.rbegin(), numbe...


1 answers
93 views
0

1 answers
80 views
0
How do I erase elements of vector<> with an index?

How do I erase the nth element in std::vector?How do I write functions such as erase() in the source code below?std::vector<int> vec;vec.push_back(6);vec.push_back(-17);vec.push_back(12);vec.era...

2 years ago

1 answers
100 views
0
What is the difference between ArrayList and Vector?

What is the difference between the two data structures of ArrayList and Vector? Where should I use each of them?

2 years ago

1 answers
143 views
0
Can I convert std::vector> to an array in C++?

As the title says, I want to save vector with pair value as an array, is it possible?

2 years ago

1 answers
71 views
0
How do I find items in std::vector?

I want to find out if there's an element in the vectorHow do we figure it out?How can I create item_present in the code below? if ( item_present ) do_this();else do that();

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.